summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-12 15:36:41 +0200
committerNoel Grandin <noel@peralex.com>2014-03-13 08:39:26 +0200
commit39c7532933bb4f1630e821a2a38b213eb05dcc59 (patch)
tree728ba3d9190cd42fd8f3b24c2d9b65bece528bbd /include/basic
parent18909ddb30db7ca9416ee2bfb0503753e877f002 (diff)
basic: prefer passing OUString and OString by reference
Change-Id: I8121204cdb37d4e1d8967397f3e45bdab6aaddad
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/sbmod.hxx2
-rw-r--r--include/basic/sbxform.hxx22
2 files changed, 12 insertions, 12 deletions
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx
index 62e3ebe12f79..b0b8ce34bfb0 100644
--- a/include/basic/sbmod.hxx
+++ b/include/basic/sbmod.hxx
@@ -109,7 +109,7 @@ public:
virtual sal_Bool Compile();
virtual sal_Bool IsCompiled() const;
- const SbxObject* FindType( OUString aTypeName ) const;
+ const SbxObject* FindType( const OUString& aTypeName ) const;
virtual sal_Bool IsBreakable( sal_uInt16 nLine ) const;
virtual sal_Bool IsBP( sal_uInt16 nLine ) const;
diff --git a/include/basic/sbxform.hxx b/include/basic/sbxform.hxx
index 0e4eb6d00db1..e77879f5da40 100644
--- a/include/basic/sbxform.hxx
+++ b/include/basic/sbxform.hxx
@@ -84,14 +84,14 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
// Constructor takes signs for decimal point, thousand separation sign
// and necessary resource strings.
SbxBasicFormater( sal_Unicode _cDecPoint, sal_Unicode _cThousandSep,
- OUString _sOnStrg,
- OUString _sOffStrg,
- OUString _sYesStrg,
- OUString _sNoStrg,
- OUString _sTrueStrg,
- OUString _sFalseStrg,
- OUString _sCurrencyStrg,
- OUString _sCurrencyFormatStrg );
+ const OUString& _sOnStrg,
+ const OUString& _sOffStrg,
+ const OUString& _sYesStrg,
+ const OUString& _sNoStrg,
+ const OUString& _sTrueStrg,
+ const OUString& _sFalseStrg,
+ const OUString& _sCurrencyStrg,
+ const OUString& _sCurrencyFormatStrg );
/* Basic command: Format$( number,format-string )
@@ -102,10 +102,10 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
Return value:
String containing the formatted output
*/
- OUString BasicFormat( double dNumber, OUString sFormatStrg );
- OUString BasicFormatNull( OUString sFormatStrg );
+ OUString BasicFormat( double dNumber, const OUString& sFormatStrg );
+ OUString BasicFormatNull( const OUString& sFormatStrg );
- static sal_Bool isBasicFormat( OUString sFormatStrg );
+ static sal_Bool isBasicFormat( const OUString& sFormatStrg );
private:
BASIC_DLLPRIVATE inline void ShiftString( OUStringBuffer& sStrg, sal_uInt16 nStartPos );