summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/vba/vbaname.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbaname.cxx')
-rw-r--r--sc/source/ui/vba/vbaname.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaname.cxx b/sc/source/ui/vba/vbaname.cxx
index f7ce25376d3f..fc5592b75276 100644
--- a/sc/source/ui/vba/vbaname.cxx
+++ b/sc/source/ui/vba/vbaname.cxx
@@ -118,7 +118,7 @@ void ScVbaName::setContent( const OUString& rContent, const formula::FormulaGra
OUString sContent( rContent );
if ( bRemoveEquals )
{
- if (sContent.indexOf('=') == 0)
+ if (sContent.startsWith("="))
sContent = sContent.copy(1);
}
ScNamedRangeObj* pNamedRange = dynamic_cast< ScNamedRangeObj* >( mxNamedRange.get() );