diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-23 03:20:53 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-23 03:21:40 +0900 |
commit | dcd7dc43376c914027b76525959a9cea71d9279e (patch) | |
tree | 2c095c70c32729a5c96b9ff040d1efc27b80b8d8 /sc/source/ui/undo | |
parent | 938ddf379004d9696a005ed612994576e2d7cca0 (diff) |
avoid temporary rtl::OUString
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undoutil.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx index bf4ac68fa044..913333fc3a00 100644 --- a/sc/source/ui/undo/undoutil.cxx +++ b/sc/source/ui/undo/undoutil.cxx @@ -97,7 +97,7 @@ ScDBData* ScUndoUtil::GetOldDBData( ScDBData* pUndoData, ScDocument* pDoc, SCTAB if ( pUndoData ) { const ::rtl::OUString& aName = pUndoData->GetName(); - if (aName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(STR_DB_LOCAL_NONAME))) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(STR_DB_LOCAL_NONAME))) bWasTemp = true; } OSL_ENSURE(bWasTemp, "Undo: didn't find database range"); |