From 3573ab67d3eb18ccf608426720629af2937ba570 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 8 Oct 2013 12:46:49 +0200 Subject: [PATCH] Create constructor methods starting with 'new' instead of 'create'. --- tools/software-desc.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/software-desc.hh b/tools/software-desc.hh index 770818e4b..2d454e502 100644 --- a/tools/software-desc.hh +++ b/tools/software-desc.hh @@ -240,8 +240,12 @@ private: } } } - if (mPropertyBehaviour==None) + if (mPropertyBehaviour==None) { mPropertyName=""; + if (mName.find("create")==0) { + mName="new"+mName.substr(6,string::npos); + } + } } string mUid; Argument *mReturn;