summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-05 22:55:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-10-06 10:10:34 +0100
commit2f632a0b39e6ae6518131ef6d100831c69c2f68f (patch)
tree09e822388c4a291b27f72f93fea8ac44d6d0b144 /sc
parent5cb1597064e81e0ea90d6a000854f9305a45c87a (diff)
woah, that's very not right
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/ftools/ftools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/ftools/ftools.cxx b/sc/source/filter/ftools/ftools.cxx
index 744cb49f21e3..e34bd7863634 100644
--- a/sc/source/filter/ftools/ftools.cxx
+++ b/sc/source/filter/ftools/ftools.cxx
@@ -163,8 +163,9 @@ Color ScfTools::GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8
void ScfTools::ConvertToScDefinedName( String& rName )
{
- sal_Char a('.');
- rName.SearchAndReplaceAllAscii(&a,'_'); //fdo#37872: we don't allow points in range names any more
+ //fdo#37872: we don't allow points in range names any more
+ rName.SearchAndReplaceAll(static_cast<sal_Unicode>('.'),
+ static_cast<sal_Unicode>('_'));
xub_StrLen nLen = rName.Len();
if( nLen && !ScCompiler::IsCharFlagAllConventions( rName, 0, SC_COMPILER_C_CHAR_NAME ) )
rName.SetChar( 0, '_' );