diff options
Diffstat (limited to 'unotools/source/config/moduleoptions.cxx')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index 71703899d50f..4f476294d78a 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -187,11 +187,11 @@ struct FactoryInfo // That's why we can't make our member public. We must use get/set/init methods // to control access on it! bool getInstalled () const { return bInstalled; }; - OUString getFactory () const { return sFactory; }; - OUString getTemplateFile () const { return sTemplateFile; }; - OUString getDefaultFilter () const { return sDefaultFilter; }; + const OUString& getFactory () const { return sFactory; }; + const OUString& getTemplateFile () const { return sTemplateFile; }; + const OUString& getDefaultFilter () const { return sDefaultFilter; }; bool isDefaultFilterReadonly() const { return bDefaultFilterReadonly; } - sal_Int32 getIcon () const { return nIcon; }; + sal_Int32 getIcon () const { return nIcon; }; // If you call set-methods - we check for changes of values and mark it. // But if you wish to set it without that... you must initialize it! |