summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/calc/CConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/calc/CConnection.cxx')
-rw-r--r--connectivity/source/drivers/calc/CConnection.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/calc/CConnection.cxx b/connectivity/source/drivers/calc/CConnection.cxx
index 97f8e333b1d8..c187256ecbda 100644
--- a/connectivity/source/drivers/calc/CConnection.cxx
+++ b/connectivity/source/drivers/calc/CConnection.cxx
@@ -84,13 +84,13 @@ void OCalcConnection::construct(const OUString& url,const Sequence< PropertyValu
m_aFileName = aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE);
m_sPassword.clear();
- 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 >>= m_sPassword;
break;