From 53cea42f883c34a7741dfc3c5633d3bb9e8bb578 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Sun, 26 Sep 2004 13:34:57 +0000 Subject: [PATCH] Change to use preffered calling of Boost.Function git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9009 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 ++ src/graphics/ChangeLog | 8 ++++++++ src/graphics/GraphicsImage.C | 4 ++-- src/graphics/GraphicsImage.h | 6 +++--- src/graphics/pch.h | 2 +- src/insets/ChangeLog | 6 +++++- src/insets/ExternalTransforms.h | 12 ++++++------ src/pch.h | 1 - src/support/ChangeLog | 5 +++++ src/support/forkedcall.h | 1 - src/support/pch.h | 1 - 11 files changed, 32 insertions(+), 16 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c7cdd18082..5beb1f6a2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2004-09-26 Lars Gullik Bjonnes + * pch.h: dont include + * Makefile.am (lyx_SOURCES): remove ShareContainer.h * paragraph_pimpl.h: remove usage of ShareContainer diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index c15e84fc3c..2f0c30b528 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,11 @@ +2004-09-26 Lars Gullik Bjonnes + + * pch.h: include instead of + + + * GraphicsImage.C: Use preferred calling of boost::function + * GraphicsImage.h: ditto + 2004-08-16 José Matos * PreviewLoader.C (Impl::startLoading): remove space at end of line. diff --git a/src/graphics/GraphicsImage.C b/src/graphics/GraphicsImage.C index 41fac6bb3c..b1d7e60707 100644 --- a/src/graphics/GraphicsImage.C +++ b/src/graphics/GraphicsImage.C @@ -22,10 +22,10 @@ namespace graphics { // This is to be connected to a function that will return a new // instance of a viable derived class. -boost::function0 Image::newImage; +boost::function Image::newImage; /// Return the list of loadable formats. -boost::function0 Image::loadableFormats; +boost::function Image::loadableFormats; std::pair diff --git a/src/graphics/GraphicsImage.h b/src/graphics/GraphicsImage.h index 9723d4388b..00c42f63aa 100644 --- a/src/graphics/GraphicsImage.h +++ b/src/graphics/GraphicsImage.h @@ -24,8 +24,8 @@ #ifndef GRAPHICSIMAGE_H #define GRAPHICSIMAGE_H +#include #include -#include #include #include @@ -43,12 +43,12 @@ public: */ typedef boost::shared_ptr ImagePtr; /// - static boost::function0 newImage; + static boost::function newImage; /// Return the list of loadable formats. typedef std::vector FormatList; /// - static boost::function0 loadableFormats; + static boost::function loadableFormats; /// virtual ~Image() {} diff --git a/src/graphics/pch.h b/src/graphics/pch.h index 41fd54673d..866a457161 100644 --- a/src/graphics/pch.h +++ b/src/graphics/pch.h @@ -1,6 +1,6 @@ #include -#include +#include #include #include #include diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 95dbd12efa..3c41997366 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2004-09-26 Lars Gullik Bjonnes + + * ExternalTransforms.h: User preferred calling of Boost.Function + 2004-09-24 Andreas Vox * insetref.C (docbook): fixing problem where Docbook XML output @@ -28,7 +32,7 @@ * pch.h: new file - * Makefile.am: support pch + * Makefile.am: support pch 2004-08-15 Jean-Marc Lasgouttes diff --git a/src/insets/ExternalTransforms.h b/src/insets/ExternalTransforms.h index f5ea527a7c..5f9a85294b 100644 --- a/src/insets/ExternalTransforms.h +++ b/src/insets/ExternalTransforms.h @@ -314,17 +314,17 @@ enum TransformID { }; -typedef boost::function1 +typedef boost::function ClipOptionFactory; -typedef boost::function1 +typedef boost::function ExtraOptionFactory; -typedef boost::function1 +typedef boost::function ResizeOptionFactory; -typedef boost::function1 +typedef boost::function RotationOptionFactory; -typedef boost::function1 +typedef boost::function ResizeCommandFactory; -typedef boost::function1 +typedef boost::function RotationCommandFactory; diff --git a/src/pch.h b/src/pch.h index 25d2b49931..96a24fa00d 100644 --- a/src/pch.h +++ b/src/pch.h @@ -7,7 +7,6 @@ #include #include // #include // mult def symbols problem (_1, _2 etc) -#include #include #include #include diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 83a80d3098..00868163bb 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2004-09-26 Lars Gullik Bjonnes + + * forkedcall.h: remove include of + * pch.h: ditto + 2004-09-10 Jean-Marc Lasgouttes * textutils.h (IsLetterCharOrDigit): remove diff --git a/src/support/forkedcall.h b/src/support/forkedcall.h index a3843e366a..bb8ffeba0c 100644 --- a/src/support/forkedcall.h +++ b/src/support/forkedcall.h @@ -28,7 +28,6 @@ #include #include -#include #include diff --git a/src/support/pch.h b/src/support/pch.h index 1a5fc49bee..b58906b398 100644 --- a/src/support/pch.h +++ b/src/support/pch.h @@ -4,7 +4,6 @@ #include #include // #include // mult def symbols problem (_1,_2 etc) -#include #include #include #include -- 2.39.2