summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-12-17 07:29:54 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-12-17 09:19:21 +0000
commit4a66c737a137ec6a4c4578901edb6db8a724f4bb (patch)
tree5a5b6ebab5d3cf03480aa4c34f46332d93be417b
parentf1afdddfe6a7048c79f7224c3b2feaa70e2265db (diff)
cppcheck: fix statements that begin with string constant
Change-Id: I42427beeae06f607e60aeeb7142714fd1f5d740d Reviewed-on: https://gerrit.libreoffice.org/7110 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r--connectivity/source/drivers/hsqldb/HUser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HUser.cxx b/connectivity/source/drivers/hsqldb/HUser.cxx
index dc6d8d81c6dd..297591eb5092 100644
--- a/connectivity/source/drivers/hsqldb/HUser.cxx
+++ b/connectivity/source/drivers/hsqldb/HUser.cxx
@@ -228,7 +228,7 @@ void SAL_CALL OHSQLUser::grantPrivileges( const OUString& objName, sal_Int32 obj
{
Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
OUString sGrant = "GRANT " + sPrivs +
- " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation);
+ " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation) +
" TO " + m_Name;
Reference<XStatement> xStmt = m_xConnection->createStatement();
@@ -254,7 +254,7 @@ void SAL_CALL OHSQLUser::revokePrivileges( const OUString& objName, sal_Int32 ob
{
Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
OUString sGrant = "REVOKE " + sPrivs +
- " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation);
+ " ON " + ::dbtools::quoteTableName(xMeta,objName,::dbtools::eInDataManipulation) +
" FROM " + m_Name;
Reference<XStatement> xStmt = m_xConnection->createStatement();