diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-13 09:34:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-13 11:05:53 +0200 |
commit | 0dc38bdde056cf33a545d85f9e1211f06d579ff7 (patch) | |
tree | 311cb26b3dbafdee92fe96effecc205a7aee50df /sfx2/source/doc/SfxDocumentMetaData.cxx | |
parent | 3075b062261435d568d0680c3405ca61a7a40f39 (diff) |
sfx2,svl: prefer passing OUString and OString by reference
Change-Id: I9833265f6e635a057cea2c4a945cc73809b1e2ef
Diffstat (limited to 'sfx2/source/doc/SfxDocumentMetaData.cxx')
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 9a6c4b8c4317..9e4d4dadfd58 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -520,7 +520,7 @@ OUString SAL_CALL getNameSpace(const char* i_qname) throw () bool SAL_CALL textToDateOrDateTime(css::util::Date & io_rd, css::util::DateTime & io_rdt, bool & o_rIsDateTime, boost::optional<sal_Int16> & o_rTimeZone, - OUString i_text) throw () + const OUString& i_text) throw () { if (::sax::Converter::parseDateOrDateTime( &io_rd, io_rdt, o_rIsDateTime, &o_rTimeZone, i_text)) { @@ -534,7 +534,7 @@ textToDateOrDateTime(css::util::Date & io_rd, css::util::DateTime & io_rdt, // convert string to date/time bool SAL_CALL -textToDateTime(css::util::DateTime & io_rdt, OUString i_text) throw () +textToDateTime(css::util::DateTime & io_rdt, const OUString& i_text) throw () { if (::sax::Converter::parseDateTime(io_rdt, 0, i_text)) { return true; @@ -547,7 +547,7 @@ textToDateTime(css::util::DateTime & io_rdt, OUString i_text) throw () // convert string to date/time with default return value css::util::DateTime SAL_CALL -textToDateTimeDefault(OUString i_text) throw () +textToDateTimeDefault(const OUString& i_text) throw () { css::util::DateTime dt; static_cast<void> (textToDateTime(dt, i_text)); |