cppcheck: fix statements that begin with string constant

Change-Id: I42427beeae06f607e60aeeb7142714fd1f5d740d
This commit is contained in:
Julien Nabet
2013-12-17 07:29:54 +01:00
parent 85d1e39d74
commit c302a773d4

View File

@@ -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();