Kaydet (Commit) 47687ccb authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: variableScope

Change-Id: Ice10ca4fdecfb446fa3f7680e89ea0d7dd2c1cb7
üst 8c7d151e
...@@ -719,9 +719,6 @@ namespace ...@@ -719,9 +719,6 @@ namespace
OTableFields& _rFieldList, OTableFields& _rFieldList,
bool bMulti ) bool bMulti )
{ {
// * must not contain a filter : have I already shown the correct warning ?
bool bCritsOnAsterikWarning = false; // ** TMFS **
OUString aFieldName,aCriteria,aWhereStr,aHavingStr,aWork/*,aOrderStr*/; OUString aFieldName,aCriteria,aWhereStr,aHavingStr,aWork/*,aOrderStr*/;
// print line by line joined with AND // print line by line joined with AND
sal_uInt16 nMaxCriteria = 0; sal_uInt16 nMaxCriteria = 0;
...@@ -739,6 +736,8 @@ namespace ...@@ -739,6 +736,8 @@ namespace
const Reference< XDatabaseMetaData > xMetaData = xConnection->getMetaData(); const Reference< XDatabaseMetaData > xMetaData = xConnection->getMetaData();
const OUString aQuote = xMetaData->getIdentifierQuoteString(); const OUString aQuote = xMetaData->getIdentifierQuoteString();
const IParseContext& rContext = static_cast<OQueryController&>(_pView->getController()).getParser().getContext(); const IParseContext& rContext = static_cast<OQueryController&>(_pView->getController()).getParser().getContext();
// * must not contain a filter : have I already shown the correct warning ?
bool bCritsOnAsterikWarning = false; // ** TMFS **
for (sal_uInt16 i=0 ; i < nMaxCriteria ; i++) for (sal_uInt16 i=0 ; i < nMaxCriteria ; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment