diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-01-01 22:39:15 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-01 22:39:15 +0100 |
commit | 59074c09b838ebaf63f5d3e7578bb473080ec0ee (patch) | |
tree | d3c0ce525b44338b1512809adf78f87c88a3b92d /basic | |
parent | RTL_CONSTASCII_(U)STRINGPARAM removed in desktop (diff) | |
download | core-59074c09b838ebaf63f5d3e7578bb473080ec0ee.tar.gz core-59074c09b838ebaf63f5d3e7578bb473080ec0ee.zip |
remove use of #pragma optimize
All these are years old, guessing from some comments as old
as Windows 9x support. These workarounds do not seem to be needed now.
Change-Id: If67baa5cdefcec33b28696c764b1ed96143b7ccd
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/loops.cxx | 8 | ||||
-rw-r--r-- | basic/source/comp/token.cxx | 10 | ||||
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 9 |
3 files changed, 0 insertions, 27 deletions
diff --git a/basic/source/comp/loops.cxx b/basic/source/comp/loops.cxx index ac536484e2c8..127ec8809c6a 100644 --- a/basic/source/comp/loops.cxx +++ b/basic/source/comp/loops.cxx @@ -451,10 +451,6 @@ done: // ON Error/Variable -#ifdef _MSC_VER -#pragma optimize("",off) -#endif - void SbiParser::On() { SbiToken eTok = Peek(); @@ -519,10 +515,6 @@ void SbiParser::On() } } -#ifdef _MSC_VER -#pragma optimize("",off) -#endif - // RESUME [0]|NEXT|label void SbiParser::Resume() diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index ca62163838bb..e0dc9fda3ac6 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -533,11 +533,6 @@ special: return eCurTok; } -#ifdef _MSC_VER -#pragma optimize("",off) -#endif - - bool SbiTokenizer::MayBeLabel( bool bNeedsColon ) { if( eCurTok == SYMBOL || m_aTokenLabelInfo.canTokenBeLabel( eCurTok ) ) @@ -552,9 +547,4 @@ bool SbiTokenizer::MayBeLabel( bool bNeedsColon ) } } -#ifdef _MSC_VER -#pragma optimize("",off) -#endif - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index f9a328ea26bf..4f080dd86ea0 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -370,11 +370,6 @@ static void myftoa( double nNum, char * pBuf, short nPrec, short nExpWidth, // This routine is public because it's also used by the Put-functions // in the class SbxImpSTRING. -#ifdef _MSC_VER -#pragma optimize( "", off ) -#pragma warning(disable: 4748) // "... because optimizations are disabled ..." -#endif - void ImpCvtNum( double nNum, short nPrec, ::rtl::OUString& rRes, bool bCoreString ) { char *q; @@ -402,10 +397,6 @@ void ImpCvtNum( double nNum, short nPrec, ::rtl::OUString& rRes, bool bCoreStrin rRes = ::rtl::OUString::createFromAscii( cBuf ); } -#ifdef _MSC_VER -#pragma optimize( "", on ) -#endif - bool ImpConvStringExt( ::rtl::OUString& rSrc, SbxDataType eTargetType ) { bool bChanged = false; |