summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/ctrlitem.cxx6
-rw-r--r--sfx2/source/view/viewprn.cxx13
2 files changed, 0 insertions, 19 deletions
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx
index 3a916c46fb10..317c16ae51ce 100644
--- a/sfx2/source/control/ctrlitem.cxx
+++ b/sfx2/source/control/ctrlitem.cxx
@@ -353,10 +353,4 @@ SfxItemState SfxControllerItem::GetItemState
: SFX_ITEM_AVAILABLE;
}
-//------------------------------------------------------------------------
-
-#ifdef _MSC_VER
-#pragma optimize("g",off)
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index a00155773fbe..2b2f11933212 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -577,14 +577,6 @@ SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter )
return pDocPrinter;
}
-//-------------------------------------------------------------------------
-// Sadly enough the problem arises with WIN32 that nothing is printed when
-// SID_PRINTDOCDIRECT auflaueft. At the moment the only known solution in this
-// case is to turn off the optimazation.
-#ifdef _MSC_VER
-#pragma optimize ( "", off )
-#endif
-
void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >& rProps, sal_Bool bIsAPI, sal_Bool bIsDirect )
{
// get the current selection; our controller should know it
@@ -890,11 +882,6 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
}
}
-// Turn on optimazation again.
-#ifdef _MSC_VER
-#pragma optimize ( "", on )
-#endif
-
//--------------------------------------------------------------------
SfxPrinter* SfxViewShell::GetPrinter( sal_Bool /*bCreate*/ )