diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:12:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:12:16 +0100 |
commit | 4e1d0357313a9bf55e78b9228dcf96c829c56855 (patch) | |
tree | 9b31bc9fd8bd3471817a000718022ef794079ab7 /connectivity/source/drivers/evoab2/NConnection.cxx | |
parent | 1f145776d815a8669dbf68e4e9b2e2e9176bb034 (diff) |
New loplugin:conststringvar: connectivity
Change-Id: I2c38bc842ee07d27a5a2ff084e8a608a858f4faa
Diffstat (limited to 'connectivity/source/drivers/evoab2/NConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/evoab2/NConnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx index 9d21a977d0af..a9975170727c 100644 --- a/connectivity/source/drivers/evoab2/NConnection.cxx +++ b/connectivity/source/drivers/evoab2/NConnection.cxx @@ -75,13 +75,13 @@ void OEvoabConnection::construct(const OUString& url, const Sequence< PropertyVa SAL_INFO("connectivity.evoab2", "OEvoabConnection::construct()::url = " << url ); OUString sPassword; - const char* pPwd = "password"; + const char pPwd[] = "password"; const PropertyValue *pIter = info.getConstArray(); const PropertyValue *pEnd = pIter + info.getLength(); for(;pIter != pEnd;++pIter) { - if(pIter->Name.equalsAscii(pPwd)) + if(pIter->Name == pPwd) { pIter->Value >>= sPassword; break; |