diff options
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r-- | xmloff/source/draw/XMLNumberStyles.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/XMLNumberStylesExport.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx index ff6a809e7c8d..5c5a0e63c584 100644 --- a/xmloff/source/draw/XMLNumberStyles.cxx +++ b/xmloff/source/draw/XMLNumberStyles.cxx @@ -438,7 +438,7 @@ void SdXMLNumberStylesExporter::exportDateStyle( SdXMLExport& rExport, sal_Int32 } } -OUString SdXMLNumberStylesExporter::getTimeStyleName(const sal_Int32 nTimeFormat ) +const OUString & SdXMLNumberStylesExporter::getTimeStyleName(const sal_Int32 nTimeFormat ) { sal_Int32 nFormat = nTimeFormat; if( nFormat > 1 ) @@ -450,7 +450,7 @@ OUString SdXMLNumberStylesExporter::getTimeStyleName(const sal_Int32 nTimeFormat } else { - return OUString(); + return EMPTY_OUSTRING; } } diff --git a/xmloff/source/draw/XMLNumberStylesExport.hxx b/xmloff/source/draw/XMLNumberStylesExport.hxx index 8b4f39dc5a2e..37edecfe1524 100644 --- a/xmloff/source/draw/XMLNumberStylesExport.hxx +++ b/xmloff/source/draw/XMLNumberStylesExport.hxx @@ -33,7 +33,7 @@ public: static void exportTimeStyle(SdXMLExport& rExport, sal_Int32 nStyle); static void exportDateStyle(SdXMLExport& rExport, sal_Int32 nStyle); - static OUString getTimeStyleName(const sal_Int32 nTimeFormat); + static const OUString& getTimeStyleName(const sal_Int32 nTimeFormat); static OUString getDateStyleName(const sal_Int32 nDateFormat); }; |