Kaydet (Commit) 3c29d5a5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some loplugin:conststringvar/stringconstant improvements: sc

Change-Id: Ie01088776c4339ec7d1fb5941c4e65d95aff8b1f
üst 7533e58f
...@@ -276,8 +276,8 @@ void testCeilingFloor_Impl( ScDocument& rDoc ) ...@@ -276,8 +276,8 @@ void testCeilingFloor_Impl( ScDocument& rDoc )
{ {
// Original test case document is ceiling-floor.xlsx // Original test case document is ceiling-floor.xlsx
// Sheet1.K1 has =AND(K3:K81) to evaluate all results. // Sheet1.K1 has =AND(K3:K81) to evaluate all results.
const char* pORef = "Sheet1.K1"; const char pORef[] = "Sheet1.K1";
OUString aRef( OUString::createFromAscii( pORef)); OUString aRef(pORef);
ScAddress aPos; ScAddress aPos;
aPos.Parse(aRef); aPos.Parse(aRef);
if (!checkFormula( rDoc, aPos, "AND(K3:K81)")) if (!checkFormula( rDoc, aPos, "AND(K3:K81)"))
......
...@@ -204,9 +204,9 @@ ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext( ScXMLImport& rImport, ...@@ -204,9 +204,9 @@ ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext( ScXMLImport& rImport,
mpQueryParam->nCol2 = maRange.aEnd.Col(); mpQueryParam->nCol2 = maRange.aEnd.Col();
mpQueryParam->nRow2 = maRange.aEnd.Row(); mpQueryParam->nRow2 = maRange.aEnd.Row();
if (sDatabaseRangeName.matchAsciiL(STR_DB_LOCAL_NONAME, strlen(STR_DB_LOCAL_NONAME))) if (sDatabaseRangeName.startsWith(STR_DB_LOCAL_NONAME))
meRangeType = ScDBCollection::SheetAnonymous; meRangeType = ScDBCollection::SheetAnonymous;
else if (sDatabaseRangeName.matchAsciiL(STR_DB_GLOBAL_NONAME, strlen(STR_DB_GLOBAL_NONAME))) else if (sDatabaseRangeName.startsWith(STR_DB_GLOBAL_NONAME))
meRangeType = ScDBCollection::GlobalAnonymous; meRangeType = ScDBCollection::GlobalAnonymous;
} }
......
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