summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/firebird/Util.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-21 08:24:59 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-21 11:29:43 +0100
commite0157dfec5d0aed888fc214abc878881789511fb (patch)
tree779848d7e7004951ca776a74cbccbbfdb53d7932 /connectivity/source/drivers/firebird/Util.cxx
parentRemove unnecessary commit (firebird-sdbc). (diff)
downloadcore-e0157dfec5d0aed888fc214abc878881789511fb.tar.gz
core-e0157dfec5d0aed888fc214abc878881789511fb.zip
Simplify/improve sanitizeIdentifier usage. (firebird-sdbc)
Change-Id: Ic0f66cc68b49a2e9d9f9b8b139a479a7179cc08b
Diffstat (limited to 'connectivity/source/drivers/firebird/Util.cxx')
-rw-r--r--connectivity/source/drivers/firebird/Util.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx
index bdf673e3b862..47661dbdb929 100644
--- a/connectivity/source/drivers/firebird/Util.cxx
+++ b/connectivity/source/drivers/firebird/Util.cxx
@@ -19,12 +19,12 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::uno;
-OUString& firebird::sanitizeIdentifier(OUString& rIdentifier)
+OUString firebird::sanitizeIdentifier(const OUString& rIdentifier)
{
- rIdentifier = rIdentifier.trim();
- assert(rIdentifier.getLength() <= 31); // Firebird identifiers cannot be longer than this.
+ OUString sRet = rIdentifier.trim();
+ assert(sRet.getLength() <= 31); // Firebird identifiers cannot be longer than this.
- return rIdentifier;
+ return sRet;
}
void firebird::evaluateStatusVector(ISC_STATUS_ARRAY& aStatusVector,