Kaydet (Commit) ca7bab05 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

slideshow: tdf#88206 replace cppu::WeakImplHelper* etc.

with the variadic variants.

Change-Id: I3160235d0e6253626a8facbfed33e3c252505cbf
Reviewed-on: https://gerrit.libreoffice.org/18336Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 9ea32ccd
...@@ -174,11 +174,10 @@ ...@@ -174,11 +174,10 @@
#include <cppcanvas/spritecanvas.hxx> #include <cppcanvas/spritecanvas.hxx>
#include <cppcanvas/vclfactory.hxx> #include <cppcanvas/vclfactory.hxx>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/compbase2.hxx>
#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase.hxx>
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.h>
#include <functional> #include <functional>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include <com/sun/star/rendering/XIntegerBitmap.hpp> #include <com/sun/star/rendering/XIntegerBitmap.hpp>
#include <com/sun/star/geometry/IntegerSize2D.hpp> #include <com/sun/star/geometry/IntegerSize2D.hpp>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
...@@ -92,7 +92,7 @@ using ::com::sun::star::uno::UNO_QUERY_THROW; ...@@ -92,7 +92,7 @@ using ::com::sun::star::uno::UNO_QUERY_THROW;
namespace namespace
{ {
typedef cppu::WeakComponentImplHelper1<presentation::XTransition> OGLTransitionerImplBase; typedef cppu::WeakComponentImplHelper<presentation::XTransition> OGLTransitionerImplBase;
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
class TimerContext class TimerContext
...@@ -605,7 +605,7 @@ void OGLTransitionerImpl::createTexture( GLuint* texID, ...@@ -605,7 +605,7 @@ void OGLTransitionerImpl::createTexture( GLuint* texID,
namespace namespace
{ {
class OGLColorSpace : public cppu::WeakImplHelper1< com::sun::star::rendering::XIntegerBitmapColorSpace > class OGLColorSpace : public cppu::WeakImplHelper< com::sun::star::rendering::XIntegerBitmapColorSpace >
{ {
private: private:
uno::Sequence< sal_Int8 > maComponentTags; uno::Sequence< sal_Int8 > maComponentTags;
...@@ -1401,7 +1401,7 @@ OGLTransitionerImpl::OGLTransitionerImpl() ...@@ -1401,7 +1401,7 @@ OGLTransitionerImpl::OGLTransitionerImpl()
{ {
} }
typedef cppu::WeakComponentImplHelper1<presentation::XTransitionFactory> OGLTransitionFactoryImplBase; typedef cppu::WeakComponentImplHelper<presentation::XTransitionFactory> OGLTransitionFactoryImplBase;
class OGLTransitionFactoryImpl : private cppu::BaseMutex, public OGLTransitionFactoryImplBase class OGLTransitionFactoryImpl : private cppu::BaseMutex, public OGLTransitionFactoryImplBase
{ {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <tools/diagnose_ex.h> #include <tools/diagnose_ex.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <cppuhelper/compbase2.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <com/sun/star/awt/XMouseListener.hpp> #include <com/sun/star/awt/XMouseListener.hpp>
...@@ -107,7 +107,7 @@ template<typename T> inline T* get_pointer(PrioritizedHandlerEntry<T> const& han ...@@ -107,7 +107,7 @@ template<typename T> inline T* get_pointer(PrioritizedHandlerEntry<T> const& han
typedef cppu::WeakComponentImplHelper2< typedef cppu::WeakComponentImplHelper<
awt::XMouseListener, awt::XMouseListener,
awt::XMouseMotionListener > Listener_UnoBase; awt::XMouseMotionListener > Listener_UnoBase;
......
...@@ -29,10 +29,9 @@ ...@@ -29,10 +29,9 @@
#include <com/sun/star/drawing/GraphicExportFilter.hpp> #include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <comphelper/uno3.hxx> #include <comphelper/uno3.hxx>
#include <cppuhelper/implbase1.hxx>
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
...@@ -104,7 +103,7 @@ bool hasUnsupportedActions( const GDIMetaFile& rMtf ) ...@@ -104,7 +103,7 @@ bool hasUnsupportedActions( const GDIMetaFile& rMtf )
namespace { namespace {
typedef ::cppu::WeakComponentImplHelper1< graphic::XGraphicRenderer > DummyRenderer_Base; typedef ::cppu::WeakComponentImplHelper< graphic::XGraphicRenderer > DummyRenderer_Base;
class DummyRenderer: public cppu::BaseMutex, public DummyRenderer_Base class DummyRenderer: public cppu::BaseMutex, public DummyRenderer_Base
{ {
......
...@@ -21,10 +21,9 @@ ...@@ -21,10 +21,9 @@
#include <tools/diagnose_ex.h> #include <tools/diagnose_ex.h>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/compbase2.hxx>
#include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.h>
#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/exc_hlp.hxx>
...@@ -203,7 +202,7 @@ private: ...@@ -203,7 +202,7 @@ private:
******************************************************************************/ ******************************************************************************/
typedef cppu::WeakComponentImplHelper1<presentation::XSlideShow> SlideShowImplBase; typedef cppu::WeakComponentImplHelper<presentation::XSlideShow> SlideShowImplBase;
typedef ::std::vector< ::cppcanvas::PolyPolygonSharedPtr> PolyPolygonVector; typedef ::std::vector< ::cppcanvas::PolyPolygonSharedPtr> PolyPolygonVector;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "unoview.hxx" #include "unoview.hxx"
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase2.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.h>
#include <comphelper/make_shared_from_uno.hxx> #include <comphelper/make_shared_from_uno.hxx>
...@@ -664,7 +664,7 @@ private: ...@@ -664,7 +664,7 @@ private:
typedef cppu::WeakComponentImplHelper2< typedef cppu::WeakComponentImplHelper<
::com::sun::star::util::XModifyListener, ::com::sun::star::util::XModifyListener,
::com::sun::star::awt::XPaintListener> SlideViewBase; ::com::sun::star::awt::XPaintListener> SlideViewBase;
......
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
#include <cppuhelper/bootstrap.hxx> #include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/servicefactory.hxx> #include <cppuhelper/servicefactory.hxx>
#include <cppuhelper/interfacecontainer.hxx> #include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/compbase2.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <comphelper/broadcasthelper.hxx> #include <comphelper/broadcasthelper.hxx>
...@@ -66,7 +65,7 @@ using namespace ::com::sun::star; ...@@ -66,7 +65,7 @@ using namespace ::com::sun::star;
namespace { namespace {
typedef ::cppu::WeakComponentImplHelper1< presentation::XSlideShowView > ViewBase; typedef ::cppu::WeakComponentImplHelper< presentation::XSlideShowView > ViewBase;
class View : public ::comphelper::OBaseMutex, class View : public ::comphelper::OBaseMutex,
public ViewBase public ViewBase
{ {
...@@ -201,7 +200,7 @@ private: ...@@ -201,7 +200,7 @@ private:
Size maSize; Size maSize;
}; };
typedef ::cppu::WeakComponentImplHelper2< drawing::XDrawPage, typedef ::cppu::WeakComponentImplHelper< drawing::XDrawPage,
beans::XPropertySet > SlideBase; beans::XPropertySet > SlideBase;
class DummySlide : public ::comphelper::OBaseMutex, class DummySlide : public ::comphelper::OBaseMutex,
public SlideBase public SlideBase
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "cppunit/extensions/HelperMacros.h" #include "cppunit/extensions/HelperMacros.h"
#include "cppunit/plugin/TestPlugIn.h" #include "cppunit/plugin/TestPlugIn.h"
#include <cppuhelper/compbase1.hxx>
#include <comphelper/broadcasthelper.hxx> #include <comphelper/broadcasthelper.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/matrix/b2dhommatrix.hxx>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <cppunit/TestFixture.h> #include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/HelperMacros.h>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <comphelper/make_shared_from_uno.hxx> #include <comphelper/make_shared_from_uno.hxx>
...@@ -39,7 +39,7 @@ namespace target = slideshow::internal; ...@@ -39,7 +39,7 @@ namespace target = slideshow::internal;
using namespace ::com::sun::star; using namespace ::com::sun::star;
// our test shape subject // our test shape subject
typedef ::cppu::WeakComponentImplHelper1< drawing::XShape > ShapeBase; typedef ::cppu::WeakComponentImplHelper< drawing::XShape > ShapeBase;
class ImplTestShape : public TestShape, class ImplTestShape : public TestShape,
private cppu::BaseMutex, private cppu::BaseMutex,
public ShapeBase public ShapeBase
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <cppunit/TestFixture.h> #include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/HelperMacros.h>
#include <cppuhelper/compbase1.hxx> #include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx> #include <cppuhelper/basemutex.hxx>
#include <comphelper/make_shared_from_uno.hxx> #include <comphelper/make_shared_from_uno.hxx>
...@@ -45,7 +45,7 @@ namespace target = slideshow::internal; ...@@ -45,7 +45,7 @@ namespace target = slideshow::internal;
using namespace ::com::sun::star; using namespace ::com::sun::star;
// our test view subject // our test view subject
typedef ::cppu::WeakComponentImplHelper1< presentation::XSlideShowView > ViewBase; typedef ::cppu::WeakComponentImplHelper< presentation::XSlideShowView > ViewBase;
class ImplTestView : public TestView, class ImplTestView : public TestView,
private cppu::BaseMutex, private cppu::BaseMutex,
public ViewBase public ViewBase
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <cppunit/TestFixture.h> #include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/HelperMacros.h>
#include <cppuhelper/compbase1.hxx>
#include <comphelper/broadcasthelper.hxx> #include <comphelper/broadcasthelper.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/matrix/b2dhommatrix.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment