From 2f632a0b39e6ae6518131ef6d100831c69c2f68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 5 Oct 2011 22:55:39 +0100 Subject: [PATCH] woah, that's very not right --- sc/source/filter/ftools/ftools.cxx | 5 +++-- 1 file 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('.'), + static_cast('_')); xub_StrLen nLen = rName.Len(); if( nLen && !ScCompiler::IsCharFlagAllConventions( rName, 0, SC_COMPILER_C_CHAR_NAME ) ) rName.SetChar( 0, '_' );