diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-25 13:48:07 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-27 23:00:03 -0600 |
commit | 7796d003bd6e0c5b2e4325ea79b4ad022e8e5938 (patch) | |
tree | 3e861147f72cdef4f639ea97956ebbf72d090dab /svl | |
parent | cfce380c1bc5f048b24aff6dcf63bca67d26a980 (diff) |
use const in SvNumberformat::GetOutputString when possible
Change-Id: I364b1ac36f999f4309b3aab2ef0c55ff2147ef43
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/zformat.hxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx index 965c92d31b18..ddb1535b7357 100644 --- a/svl/inc/svl/zformat.hxx +++ b/svl/inc/svl/zformat.hxx @@ -233,7 +233,7 @@ public: void SetStarFormatSupport( bool b ) { bStarFlag = b; } NfHackConversion Load( SvStream& rStream, ImpSvNumMultipleReadHeader& rHdr, - SvNumberFormatter* pConverter, ImpSvNumberInputScan& rISc ); + SvNumberFormatter* pConverter, ImpSvNumberInputScan& rISc ); void Save( SvStream& rStream, ImpSvNumMultipleWriteHeader& rHdr ) const; // Load a string which might contain an Euro symbol, @@ -247,7 +247,7 @@ public: bool GetOutputString( double fNumber, sal_uInt16 nCharCount, OUString& rOutString ) const; bool GetOutputString( double fNumber, OUString& OutString, Color** ppColor ); - bool GetOutputString( OUString& sString, OUString& OutString, Color** ppColor ); + bool GetOutputString( const OUString& sString, OUString& OutString, Color** ppColor ); // True if type text bool IsTextFormat() const { return (eType & NUMBERFORMAT_TEXT) != 0; } diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 3dc994adc5d8..527ff35bbdf7 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -2188,7 +2188,7 @@ short SvNumberformat::ImpCheckCondition(double& fNumber, } } -bool SvNumberformat::GetOutputString(OUString& sString, +bool SvNumberformat::GetOutputString(const OUString& sString, OUString& OutString, Color** ppColor) { |