diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 09:26:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 11:54:20 +0200 |
commit | 8ed77fae3e5e9e5f7409e03d5e4586f428a65c86 (patch) | |
tree | e4dea7abf2deced1aeb88eb8b570a75271cb9150 /connectivity/source/drivers/firebird/Connection.cxx | |
parent | 4d7054947d87174decf12ad204c09532f33599f8 (diff) |
loplugin:oncevar in codemaker..connectivity
Change-Id: Ia479d9d3d459a699dfc5c1148d01c35e8bc973bd
Reviewed-on: https://gerrit.libreoffice.org/39000
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/firebird/Connection.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Connection.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 2d03917cc3e7..a17222f52f31 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -246,8 +246,7 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV // set UTF8 as default character set const char sCharset[] = "UTF8"; dpbBuffer.push_back(isc_dpb_set_db_charset); - int nCharsetLength = sizeof(sCharset) - 1; - dpbBuffer.push_back(nCharsetLength); + dpbBuffer.push_back(sizeof(sCharset) - 1); dpbBuffer.append(sCharset); // Do any more dpbBuffer additions here |