diff options
author | Tino Rachui <tra@openoffice.org> | 2001-08-10 11:28:56 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-08-10 11:28:56 +0000 |
commit | e28395ae8b5c2f82f5175c9765a46666d7de86da (patch) | |
tree | 8869e7df911860b9d0577733c7ceabd4f1269412 /fpicker/source | |
parent | a6f6021fc64e409c2998b6dc8892dcd0c3d3fc7e (diff) |
#89230#remove code for stripping tilde signs from label strings
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/win32/misc/resourceprovider.cxx | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/fpicker/source/win32/misc/resourceprovider.cxx b/fpicker/source/win32/misc/resourceprovider.cxx index 5333f98cf33c..f3cd1eccdc79 100644 --- a/fpicker/source/win32/misc/resourceprovider.cxx +++ b/fpicker/source/win32/misc/resourceprovider.cxx @@ -2,9 +2,9 @@ * * $RCSfile: resourceprovider.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: tra $ $Date: 2001-06-28 11:11:06 $ + * last change: $Author: tra $ $Date: 2001-08-10 12:28:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -110,9 +110,6 @@ using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds; // id + 100 #define LB_LABEL_OFFSET 100 -const rtl::OUString TILDE = OUString::createFromAscii( "~" ); -const sal_Unicode TILDE_SIGN = L'~'; - #define FOLDERPICKER_TITLE 500 #define FOLDER_PICKER_DEF_DESCRIPTION 501 @@ -210,35 +207,6 @@ public: { aResString = String( ResId( aResId, m_ResMgr ) ); aResOUString = OUString( aResString ); - - // remove '~' signs, if there are two '~' signs - // in a row we remove only one of them - if ( aResOUString.indexOf( TILDE ) > -1 ) - { - sal_Int32 nStrLen = aResOUString.getLength( ); - rtl::OUStringBuffer aBuffer( nStrLen ); - sal_Int32 i = 0; - const sal_Unicode* pPos = aResOUString.getStr( ); - const sal_Unicode* pNext = aResOUString.getStr( ) + 1; - const sal_Unicode* pEnd = aResOUString.getStr( ) + nStrLen; - - while( pPos < pEnd ) - { - // we insert the next character only if the current character - // in not a '~' or the following character is also a '~' - if ( (*pPos != TILDE_SIGN) || - ((*pPos == TILDE_SIGN) && (pNext < pEnd) && (*pNext == TILDE_SIGN)) ) - { - aBuffer.insert( i, *pPos ); - i++; - } - - pPos++; - pNext++; - } - - aResOUString = aBuffer.makeStringAndClear( ); - } } } catch(...) |