[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - sfx2/inc

Tor Lillqvist tlillqvist at suse.com
Tue Apr 30 14:58:16 PDT 2013


 sfx2/inc/sfx2/tbxctrl.hxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit e6a462e56e725aab30614f553e951b91fdd3467b
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Tue Apr 30 15:26:07 2013 +0300

    MSVC: member of dll interface class may not be declared with dll interface
    
    Change-Id: I751832d8725354cebd892738fa80fd7bc5e43925

diff --git a/sfx2/inc/sfx2/tbxctrl.hxx b/sfx2/inc/sfx2/tbxctrl.hxx
index 5791654..3109d1f 100644
--- a/sfx2/inc/sfx2/tbxctrl.hxx
+++ b/sfx2/inc/sfx2/tbxctrl.hxx
@@ -174,7 +174,7 @@ public:
 
 #define SFX_DECL_TOOLBOX_CONTROL() \
         static SfxToolBoxControl* CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx ); \
-        static void SFX2_DLLPUBLIC RegisterControl(sal_uInt16 nSlotId = 0, SfxModule *pMod=NULL)
+        static void RegisterControl(sal_uInt16 nSlotId = 0, SfxModule *pMod=NULL)
 
 /*  For special ToolBox controls, such as a font selection box or toolbox
     tear-off floating windows, an appropriate Item-Subclass of SfxTooBoxControl
@@ -375,7 +375,11 @@ module initialization has to call RegisterControl().
 class SfxRecentFilesToolBoxControl : public SfxToolBoxControl
 {
 public:
-    SFX_DECL_TOOLBOX_CONTROL();
+    // We don't use SFX_DECL_TOOLBOX_CONTROL() here as we need to have this
+    // RegisterControl() marked as SFX2_DLLPUBLIC
+    static SfxToolBoxControl* CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx );
+    static void SFX2_DLLPUBLIC RegisterControl(sal_uInt16 nSlotId = 0, SfxModule *pMod=NULL);
+
     SfxRecentFilesToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox );
     virtual ~SfxRecentFilesToolBoxControl();
 


More information about the Libreoffice-commits mailing list