diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-08-06 13:18:05 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-08-06 13:18:05 +0000 |
commit | e1c2d037f9ed05f8ff321c8c5688de4ee0234de0 (patch) | |
tree | ddc83da04769f29040788fe3b2e772ae5f5cb431 | |
parent | ddb67ff3f2ccded57096018e45b17f34c8019cf2 (diff) |
#i10000# #i92397# windows 2003 build fixes
-rw-r--r-- | toolkit/source/awt/forward.hxx | 9 | ||||
-rw-r--r-- | toolkit/source/awt/vclxdialog.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxfixedline.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxscroller.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxsplitter.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtabcontrol.cxx | 4 |
6 files changed, 18 insertions, 11 deletions
diff --git a/toolkit/source/awt/forward.hxx b/toolkit/source/awt/forward.hxx index e85be9cfa9c1..2ec346dbdcf9 100644 --- a/toolkit/source/awt/forward.hxx +++ b/toolkit/source/awt/forward.hxx @@ -8,7 +8,7 @@ * * $RCSfile: forward.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -67,4 +67,11 @@ return aReturn; \ } +#if defined (_MSC_VER) && (_MSC_VER <= 1310) +// Windows .Net2003 build fix +#define W3K_EXPLICIT_CAST(x) static_cast <XWindow2*> (&x) +#else // !(defined (_MSC_VER) && (_MSC_VER <= 1310)) +#define W3K_EXPLICIT_CAST(x) x +#endif // !(defined (_MSC_VER) && (_MSC_VER <= 1310)) + #endif /* AWT_FORWARD_HXX */ diff --git a/toolkit/source/awt/vclxdialog.cxx b/toolkit/source/awt/vclxdialog.cxx index 7951a1af824c..76a266d1e609 100644 --- a/toolkit/source/awt/vclxdialog.cxx +++ b/toolkit/source/awt/vclxdialog.cxx @@ -8,7 +8,7 @@ * * $RCSfile: vclxdialog.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -109,7 +109,7 @@ void SAL_CALL VCLXDialog::dispose() throw(::com::sun::star::uno::RuntimeExceptio ::vos::OGuard aGuard( GetMutex() ); ::com::sun::star::lang::EventObject aDisposeEvent; - aDisposeEvent.Source = *this; + aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this); // maTabListeners.disposeAndClear( aDisposeEvent ); } diff --git a/toolkit/source/awt/vclxfixedline.cxx b/toolkit/source/awt/vclxfixedline.cxx index 558cbade42cf..2517c449946e 100644 --- a/toolkit/source/awt/vclxfixedline.cxx +++ b/toolkit/source/awt/vclxfixedline.cxx @@ -8,7 +8,7 @@ * * $RCSfile: vclxfixedline.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -69,7 +69,7 @@ void SAL_CALL VCLXFixedLine::dispose() throw(RuntimeException) ::vos::OGuard aGuard( GetMutex() ); EventObject aDisposeEvent; - aDisposeEvent.Source = *this; + aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this); } VCLXWindow::dispose(); diff --git a/toolkit/source/awt/vclxscroller.cxx b/toolkit/source/awt/vclxscroller.cxx index 9a0dcc1dfdea..c2729a0bfeb3 100644 --- a/toolkit/source/awt/vclxscroller.cxx +++ b/toolkit/source/awt/vclxscroller.cxx @@ -8,7 +8,7 @@ * * $RCSfile: vclxscroller.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -75,7 +75,7 @@ void SAL_CALL VCLXScroller::dispose() throw(RuntimeException) ::vos::OGuard aGuard( GetMutex() ); EventObject aDisposeEvent; - aDisposeEvent.Source = *this; + aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this); // maTabListeners.disposeAndClear( aDisposeEvent ); } diff --git a/toolkit/source/awt/vclxsplitter.cxx b/toolkit/source/awt/vclxsplitter.cxx index 0dc024e7841a..b38ed4baf38a 100644 --- a/toolkit/source/awt/vclxsplitter.cxx +++ b/toolkit/source/awt/vclxsplitter.cxx @@ -8,7 +8,7 @@ * * $RCSfile: vclxsplitter.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -113,7 +113,7 @@ void SAL_CALL VCLXSplitter::dispose() throw(RuntimeException) ::vos::OGuard aGuard( GetMutex() ); EventObject aDisposeEvent; - aDisposeEvent.Source = *this; + aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this); // maTabListeners.disposeAndClear( aDisposeEvent ); } diff --git a/toolkit/source/awt/vclxtabcontrol.cxx b/toolkit/source/awt/vclxtabcontrol.cxx index cc7470360aa8..a0f064f6de8b 100644 --- a/toolkit/source/awt/vclxtabcontrol.cxx +++ b/toolkit/source/awt/vclxtabcontrol.cxx @@ -8,7 +8,7 @@ * * $RCSfile: vclxtabcontrol.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -100,7 +100,7 @@ void SAL_CALL VCLXTabControl::dispose( ) throw(RuntimeException) ::vos::OGuard aGuard( GetMutex() ); EventObject aDisposeEvent; - aDisposeEvent.Source = *this; + aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this); // maTabListeners.disposeAndClear( aDisposeEvent ); } |