diff options
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 196998a0bcfb..cc0c611e2c2d 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1671,7 +1671,7 @@ bool checkNamingSceme( const OUString& aName, const OUString& aNameBase, // Name has to start with NameBase followed // by a '_' and at least one more character - if( aName.indexOf( aNameBase ) == 0 && nNameBaseLen < nNameLen-1 && + if( aName.startsWith( aNameBase ) && nNameBaseLen < nNameLen-1 && aName.getStr()[nNameBaseLen] == '_' ) { bSuccess = true; |