[Libreoffice-commits] core.git: include/svx

Caolán McNamara caolanm at redhat.com
Tue Apr 21 01:34:21 PDT 2015


 include/svx/f3dchild.hxx             |    2 +-
 include/svx/fillctrl.hxx             |    4 ++--
 include/svx/float3d.hxx              |    6 +++---
 include/svx/fmdmod.hxx               |    2 +-
 include/svx/fmdpage.hxx              |    2 +-
 include/svx/fmgridcl.hxx             |    4 ++--
 include/svx/fmgridif.hxx             |   16 ++++++++--------
 include/svx/fmmodel.hxx              |    2 +-
 include/svx/fmobjfac.hxx             |    7 +------
 include/svx/fmpage.hxx               |    2 +-
 include/svx/fmshell.hxx              |    9 ++-------
 include/svx/fmsrccfg.hxx             |    2 +-
 include/svx/fmsrcimp.hxx             |   17 ++++++++++-------
 include/svx/fmtools.hxx              |   10 +++-------
 include/svx/fmview.hxx               |    2 +-
 include/svx/fntctl.hxx               |    4 +---
 include/svx/fntctrl.hxx              |    2 +-
 include/svx/fntszctl.hxx             |    4 +---
 include/svx/fontlb.hxx               |    6 ++----
 include/svx/fontwork.hxx             |    6 +++---
 include/svx/fontworkbar.hxx          |    2 +-
 include/svx/fontworkgallery.hxx      |    9 +++------
 include/svx/formatpaintbrushctrl.hxx |    3 +--
 include/svx/framelink.hxx            |    4 ++--
 include/svx/framelinkarray.hxx       |    4 +---
 include/svx/frmdirlbox.hxx           |    4 ++--
 include/svx/frmsel.hxx               |    2 +-
 27 files changed, 57 insertions(+), 80 deletions(-)

New commits:
commit 08642a115e8bb936fa914b6682ca6be9e08350fd
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 17 20:59:58 2015 +0100

    add some SAL_WARN_UNUSED
    
    Change-Id: I6f52c91d6b355c9aa0e0bb28990745c4eb4be5ac

diff --git a/include/svx/f3dchild.hxx b/include/svx/f3dchild.hxx
index a306f2f..4bc6aad 100644
--- a/include/svx/f3dchild.hxx
+++ b/include/svx/f3dchild.hxx
@@ -31,7 +31,7 @@
 |*
 \************************************************************************/
 
-class SVX_DLLPUBLIC Svx3DChildWindow : public SfxChildWindow
+class SVX_DLLPUBLIC SAL_WARN_UNUSED Svx3DChildWindow : public SfxChildWindow
 {
  public:
     Svx3DChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
diff --git a/include/svx/fillctrl.hxx b/include/svx/fillctrl.hxx
index c8878d9..60955a6 100644
--- a/include/svx/fillctrl.hxx
+++ b/include/svx/fillctrl.hxx
@@ -41,7 +41,7 @@ class ListBox;
 |*
 \************************************************************************/
 
-class SVX_DLLPUBLIC SvxFillToolBoxControl : public SfxToolBoxControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFillToolBoxControl : public SfxToolBoxControl
 {
 private:
     XFillStyleItem*     mpStyleItem;
@@ -72,7 +72,7 @@ public:
 
 
 
-class FillControl : public vcl::Window
+class SAL_WARN_UNUSED FillControl : public vcl::Window
 {
 private:
     friend class SvxFillToolBoxControl;
diff --git a/include/svx/float3d.hxx b/include/svx/float3d.hxx
index fcc6dce..e05f9d5 100644
--- a/include/svx/float3d.hxx
+++ b/include/svx/float3d.hxx
@@ -53,7 +53,7 @@ class SvxConvertTo3DItem;
 
 struct Svx3DWinImpl;
 
-class SVX_DLLPUBLIC Svx3DWin : public SfxDockingWindow
+class SVX_DLLPUBLIC SAL_WARN_UNUSED Svx3DWin : public SfxDockingWindow
 {
     friend class        Svx3DChildWindow;
     friend class        Svx3DCtrlItem;
@@ -237,7 +237,7 @@ public:
 |*
 \************************************************************************/
 
-class Svx3DCtrlItem : public SfxControllerItem
+class SAL_WARN_UNUSED Svx3DCtrlItem : public SfxControllerItem
 {
  protected:
     virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
@@ -254,7 +254,7 @@ class Svx3DCtrlItem : public SfxControllerItem
 |*
 \************************************************************************/
 
-class SvxConvertTo3DItem : public SfxControllerItem
+class SAL_WARN_UNUSED SvxConvertTo3DItem : public SfxControllerItem
 {
     bool                        bState;
 
diff --git a/include/svx/fmdmod.hxx b/include/svx/fmdmod.hxx
index 8a5a167..86acf22 100644
--- a/include/svx/fmdmod.hxx
+++ b/include/svx/fmdmod.hxx
@@ -22,7 +22,7 @@
 #include <svx/unomod.hxx>
 #include <svx/svxdllapi.h>
 
-class SVX_DLLPUBLIC SvxFmMSFactory : public SvxUnoDrawMSFactory
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFmMSFactory : public SvxUnoDrawMSFactory
 {
 
 public:
diff --git a/include/svx/fmdpage.hxx b/include/svx/fmdpage.hxx
index ba7e8ef..d40d6f4 100644
--- a/include/svx/fmdpage.hxx
+++ b/include/svx/fmdpage.hxx
@@ -27,7 +27,7 @@
 
 // SvxFmDrawPage
 
-class SVX_DLLPUBLIC SvxFmDrawPage   :public SvxDrawPage
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFmDrawPage   :public SvxDrawPage
                                     ,public ::com::sun::star::form::XFormsSupplier2
 {
 protected:
diff --git a/include/svx/fmgridcl.hxx b/include/svx/fmgridcl.hxx
index f373f5e..934293e 100644
--- a/include/svx/fmgridcl.hxx
+++ b/include/svx/fmgridcl.hxx
@@ -30,7 +30,7 @@
 // FmGridHeader
 
 struct FmGridHeaderData;
-class SVX_DLLPUBLIC FmGridHeader
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmGridHeader
             :public ::svt::EditBrowserHeader
             ,public DropTargetHelper
 {
@@ -91,7 +91,7 @@ private:
 // FmGridControl
 
 class FmXGridPeer;
-class SVX_DLLPUBLIC FmGridControl : public DbGridControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmGridControl : public DbGridControl
 
 {
     friend class FmGridHeader;
diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx
index 2d31c97..8556a13 100644
--- a/include/svx/fmgridif.hxx
+++ b/include/svx/fmgridif.hxx
@@ -57,7 +57,7 @@
 
 class DbGridColumn;
 
-class OWeakSubObject : public ::cppu::OWeakObject
+class SAL_WARN_UNUSED OWeakSubObject : public ::cppu::OWeakObject
 {
 protected:
     ::cppu::OWeakObject&    m_rParent;
@@ -72,7 +72,7 @@ public:
 
 // FmXModifyMultiplexer
 
-class FmXModifyMultiplexer  :public OWeakSubObject
+class SAL_WARN_UNUSED FmXModifyMultiplexer  :public OWeakSubObject
                             ,public ::cppu::OInterfaceContainerHelper
                             ,public ::com::sun::star::util::XModifyListener
 {
@@ -95,7 +95,7 @@ public:
 
 // FmXUpdateMultiplexer
 
-class FmXUpdateMultiplexer : public OWeakSubObject,
+class SAL_WARN_UNUSED FmXUpdateMultiplexer : public OWeakSubObject,
                              public ::cppu::OInterfaceContainerHelper,
                              public ::com::sun::star::form::XUpdateListener
 {
@@ -120,7 +120,7 @@ public:
 
 // FmXSelectionMultiplexer
 
-class FmXSelectionMultiplexer   :public OWeakSubObject
+class SAL_WARN_UNUSED FmXSelectionMultiplexer   :public OWeakSubObject
                                 ,public ::cppu::OInterfaceContainerHelper
                                 ,public ::com::sun::star::view::XSelectionChangeListener
 {
@@ -144,7 +144,7 @@ public:
 
 // FmXGridControlMultiplexer
 
-class FmXGridControlMultiplexer :public OWeakSubObject
+class SAL_WARN_UNUSED FmXGridControlMultiplexer :public OWeakSubObject
                                 ,public ::cppu::OInterfaceContainerHelper
                                 ,public ::com::sun::star::form::XGridControlListener
 {
@@ -168,7 +168,7 @@ public:
 
 // FmXContainerMultiplexer
 
-class FmXContainerMultiplexer : public OWeakSubObject,
+class SAL_WARN_UNUSED FmXContainerMultiplexer : public OWeakSubObject,
                                 public ::cppu::OInterfaceContainerHelper,
                                 public ::com::sun::star::container::XContainerListener
 {
@@ -206,7 +206,7 @@ typedef ::cppu::ImplHelper10<   ::com::sun::star::form::XBoundComponent,
                             >   FmXGridControl_BASE;
 
 class FmXGridPeer;
-class SVX_DLLPUBLIC FmXGridControl  :public UnoControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmXGridControl  :public UnoControl
                         ,public FmXGridControl_BASE
 {
     FmXModifyMultiplexer        m_aModifyListeners;
@@ -338,7 +338,7 @@ typedef ::comphelper::ImplHelper19  <   ::com::sun::star::form::XGridPeer,
                                         ::com::sun::star::view::XSelectionSupplier
                                     >   FmXGridPeer_BASE;
 class FmGridControl;
-class SVX_DLLPUBLIC FmXGridPeer :public VCLXWindow
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmXGridPeer :public VCLXWindow
                     ,public FmXGridPeer_BASE
 {
     css::uno::Reference< css::container::XIndexContainer >    m_xColumns;
diff --git a/include/svx/fmmodel.hxx b/include/svx/fmmodel.hxx
index 03f65df..a78bf15 100644
--- a/include/svx/fmmodel.hxx
+++ b/include/svx/fmmodel.hxx
@@ -32,7 +32,7 @@ class SbxArray;
 class SbxValue;
 
 struct FmFormModelImplData;
-class SVX_DLLPUBLIC FmFormModel :
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmFormModel :
     public SdrModel
 {
 private:
diff --git a/include/svx/fmobjfac.hxx b/include/svx/fmobjfac.hxx
index d80a713..36696cd 100644
--- a/include/svx/fmobjfac.hxx
+++ b/include/svx/fmobjfac.hxx
@@ -25,9 +25,7 @@
 
 class SdrObjFactory;
 
-
-
-class SVX_DLLPUBLIC FmFormObjFactory
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmFormObjFactory
 {
 public:
     FmFormObjFactory();
@@ -36,9 +34,6 @@ public:
     DECL_LINK(MakeObject, SdrObjFactory*);
 };
 
-
-
-
 #endif          // _FM_FMOBJFAC_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fmpage.hxx b/include/svx/fmpage.hxx
index 74d3ec1..ccadf5b 100644
--- a/include/svx/fmpage.hxx
+++ b/include/svx/fmpage.hxx
@@ -38,7 +38,7 @@ namespace com { namespace sun { namespace star {
 class SdrView;
 class HelpEvent;
 
-class SVX_DLLPUBLIC FmFormPage : public SdrPage
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmFormPage : public SdrPage
 {
     FmFormPage& operator=(const FmFormPage&) SAL_DELETED_FUNCTION;
 
diff --git a/include/svx/fmshell.hxx b/include/svx/fmshell.hxx
index 5c568de..713ff80 100644
--- a/include/svx/fmshell.hxx
+++ b/include/svx/fmshell.hxx
@@ -55,7 +55,7 @@ namespace svx
 }
 
 
-class SVX_DLLPUBLIC FmDesignModeChangedHint : public SfxHint
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmDesignModeChangedHint : public SfxHint
 {
     bool m_bDesignMode;
 
@@ -66,8 +66,7 @@ public:
     bool GetDesignMode() const { return m_bDesignMode; }
 };
 
-
-class SVX_DLLPUBLIC FmFormShell : public SfxShell
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmFormShell : public SfxShell
 {
     friend class FmFormView;
     friend class FmXFormShell;
@@ -176,10 +175,6 @@ protected:
     void impl_setDesignMode( bool bDesign);
 };
 
-// ***************************************************************************************************
-// ***************************************************************************************************
-// ***************************************************************************************************
-
 #endif // INCLUDED_SVX_FMSHELL_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fmsrccfg.hxx b/include/svx/fmsrccfg.hxx
index 1e11506..9ebf527 100644
--- a/include/svx/fmsrccfg.hxx
+++ b/include/svx/fmsrccfg.hxx
@@ -91,7 +91,7 @@ namespace svxform
     // = class FmSearchConfigItem - a ConfigItem, that remembers search parameters
 
 
-    class SVX_DLLPUBLIC FmSearchConfigItem
+    class SVX_DLLPUBLIC SAL_WARN_UNUSED FmSearchConfigItem
                 :protected  FmSearchParams
                 ,public     ::utl::OConfigurationValueContainer
                 // order matters!
diff --git a/include/svx/fmsrcimp.hxx b/include/svx/fmsrcimp.hxx
index 6a5c239..c94731e 100644
--- a/include/svx/fmsrcimp.hxx
+++ b/include/svx/fmsrcimp.hxx
@@ -42,7 +42,7 @@
  * class FmSearchThread
  */
 class FmSearchEngine;
-class FmSearchThread : public ::osl::Thread
+class SAL_WARN_UNUSED FmSearchThread : public ::osl::Thread
 {
     FmSearchEngine*     m_pEngine;
     Link                m_aTerminationHdl;
@@ -81,7 +81,7 @@ struct FmSearchProgress
  * class FmRecordCountListener - utility class for FmSearchEngine, listens at a certain cursor and provides
  *                               the differences in RecordCount
  */
-class FmRecordCountListener : public ::cppu::WeakImplHelper1< ::com::sun::star::beans::XPropertyChangeListener>
+class SAL_WARN_UNUSED FmRecordCountListener : public ::cppu::WeakImplHelper1< ::com::sun::star::beans::XPropertyChangeListener>
 {
 // attribute
     Link            m_lnkWhoWantsToKnow;
@@ -120,7 +120,7 @@ namespace svxform {
     // We have three possible control types we may search in, determined by the supported interfaces : ::com::sun::star::awt::XTextComponent,
     // ::com::sun::star::awt::XListBox, ::com::sun::star::awt::XCheckBox.
     // While searching we don't want to do this distinction for every control in every round. So we need some helpers.
-    class ControlTextWrapper
+    class SAL_WARN_UNUSED ControlTextWrapper
     {
         // attributes
         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >   m_xControl;
@@ -133,21 +133,24 @@ namespace svxform {
 
         virtual OUString getCurrentText() const = 0;
     };
-    class SimpleTextWrapper : public ControlTextWrapper
+
+    class SAL_WARN_UNUSED SimpleTextWrapper : public ControlTextWrapper
     {
         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextComponent >  m_xText;
     public:
         SimpleTextWrapper(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextComponent >& _xText);
         virtual OUString getCurrentText() const SAL_OVERRIDE;
     };
-    class ListBoxWrapper : public ControlTextWrapper
+
+    class SAL_WARN_UNUSED ListBoxWrapper : public ControlTextWrapper
     {
         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XListBox >  m_xBox;
     public:
         ListBoxWrapper(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XListBox >& _xBox);
         virtual OUString getCurrentText() const SAL_OVERRIDE;
     };
-    class CheckBoxWrapper : public ControlTextWrapper
+
+    class SAL_WARN_UNUSED CheckBoxWrapper : public ControlTextWrapper
     {
         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XCheckBox >  m_xBox;
     public:
@@ -160,7 +163,7 @@ enum FMSEARCH_MODE { SM_BRUTE, SM_ALLOWSCHEDULE, SM_USETHREAD };
 
 typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> > InterfaceArray;
 
-class SVX_DLLPUBLIC FmSearchEngine
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmSearchEngine
 {
     friend class FmSearchThread;
 
diff --git a/include/svx/fmtools.hxx b/include/svx/fmtools.hxx
index 225c773..06b8a32 100644
--- a/include/svx/fmtools.hxx
+++ b/include/svx/fmtools.hxx
@@ -92,7 +92,7 @@ SVX_DLLPUBLIC OUString getLabelName(const css::uno::Reference< css::beans::XProp
 //                          XDatabaseBookmarkCursor and XDatabaseDirectCursor each
 
 
-class CursorWrapper
+class SAL_WARN_UNUSED CursorWrapper
 {
 private:
     css::uno::Reference< css::uno::XInterface>                m_xGeneric;
@@ -171,7 +171,7 @@ private:
 
 
 class FmXDisposeMultiplexer;
-class FmXDisposeListener
+class SAL_WARN_UNUSED FmXDisposeListener
 {
     friend class FmXDisposeMultiplexer;
 
@@ -188,9 +188,7 @@ protected:
     void setAdapter(FmXDisposeMultiplexer* pAdapter);
 };
 
-
-
-class FmXDisposeMultiplexer :public ::cppu::WeakImplHelper1< css::lang::XEventListener>
+class SAL_WARN_UNUSED FmXDisposeMultiplexer : public ::cppu::WeakImplHelper1< css::lang::XEventListener>
 {
     css::uno::Reference< css::lang::XComponent>       m_xObject;
     FmXDisposeListener* m_pListener;
@@ -206,8 +204,6 @@ public:
     void dispose();
 };
 
-
-
 sal_Int16       getControlTypeByObject(const css::uno::Reference< css::lang::XServiceInfo>& _rxObject);
     // get the object type (OBJ_FM_...) from the services the object supports
 
diff --git a/include/svx/fmview.hxx b/include/svx/fmview.hxx
index 76b88ab..a633b08 100644
--- a/include/svx/fmview.hxx
+++ b/include/svx/fmview.hxx
@@ -53,7 +53,7 @@ namespace com { namespace sun { namespace star { namespace form {
     }
 } } } }
 
-class SVX_DLLPUBLIC FmFormView : public E3dView
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FmFormView : public E3dView
 {
     FmXFormView*    pImpl;
     FmFormShell*    pFormShell;
diff --git a/include/svx/fntctl.hxx b/include/svx/fntctl.hxx
index b37575c..bc38265 100644
--- a/include/svx/fntctl.hxx
+++ b/include/svx/fntctl.hxx
@@ -30,7 +30,7 @@ class SfxBindings;
 
 // class SvxFontMenuControl ----------------------------------------------
 
-class SVX_DLLPUBLIC SvxFontMenuControl : public SfxMenuControl, public SfxListener
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontMenuControl : public SfxMenuControl, public SfxListener
 {
 private:
     FontNameMenu*   pMenu;
@@ -51,8 +51,6 @@ public:
     SFX_DECL_MENU_CONTROL();
 };
 
-
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fntctrl.hxx b/include/svx/fntctrl.hxx
index f6c276a..7ba6e1a 100644
--- a/include/svx/fntctrl.hxx
+++ b/include/svx/fntctrl.hxx
@@ -34,7 +34,7 @@ class FontPrevWin_Impl;
 
 // class SvxFontPrevWindow -----------------------------------------------
 
-class SVX_DLLPUBLIC SvxFontPrevWindow : public vcl::Window
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontPrevWindow : public vcl::Window
 {
     using OutputDevice::SetFont;
 private:
diff --git a/include/svx/fntszctl.hxx b/include/svx/fntszctl.hxx
index 2c7562f..1e514ea 100644
--- a/include/svx/fntszctl.hxx
+++ b/include/svx/fntszctl.hxx
@@ -29,7 +29,7 @@ class FontSizeMenu;
 
 // class SvxFontSizeMenuControl ------------------------------------------
 
-class SVX_DLLPUBLIC SvxFontSizeMenuControl : public SfxMenuControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontSizeMenuControl : public SfxMenuControl
 {
 private:
     FontSizeMenu*   pMenu;
@@ -51,8 +51,6 @@ public:
     SFX_DECL_MENU_CONTROL();
 };
 
-
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fontlb.hxx b/include/svx/fontlb.hxx
index 1b50e67..dcd6cee 100644
--- a/include/svx/fontlb.hxx
+++ b/include/svx/fontlb.hxx
@@ -28,7 +28,7 @@
 
 
 /** A list box string item which stores its text and font. */
-class SvLBoxFontString : public SvLBoxString
+class SAL_WARN_UNUSED SvLBoxFontString : public SvLBoxString
 {
 private:
     vcl::Font                   maFont;     /// The font used by this item.
@@ -59,7 +59,7 @@ public:
 
 
 /** A list box supporting formatted string entries. */
-class SVX_DLLPUBLIC SvxFontListBox : public SvTabListBox
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontListBox : public SvTabListBox
 {
 private:
     vcl::Font                   maStdFont;      /// Used for entries without specific font.
@@ -97,8 +97,6 @@ protected:
                                     SvLBoxButtonKind eButtonKind) SAL_OVERRIDE;
 };
 
-
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/fontwork.hxx b/include/svx/fontwork.hxx
index 283b631..988c3ab 100644
--- a/include/svx/fontwork.hxx
+++ b/include/svx/fontwork.hxx
@@ -55,7 +55,7 @@ class XFormTextShadowYValItem;
 
 class SvxFontWorkDialog;
 
-class SvxFontWorkControllerItem : public SfxControllerItem
+class SAL_WARN_UNUSED SvxFontWorkControllerItem : public SfxControllerItem
 {
     SvxFontWorkDialog  &rFontWorkDlg;
 
@@ -73,7 +73,7 @@ public:
 |*
 \************************************************************************/
 
-class SVX_DLLPUBLIC SvxFontWorkChildWindow : public SfxChildWindow
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontWorkChildWindow : public SfxChildWindow
 {
  public:
     SvxFontWorkChildWindow(vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo*);
@@ -86,7 +86,7 @@ class SVX_DLLPUBLIC SvxFontWorkChildWindow : public SfxChildWindow
 |*
 \************************************************************************/
 
-class SVX_DLLPUBLIC SvxFontWorkDialog : public SfxDockingWindow
+class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontWorkDialog : public SfxDockingWindow
 {
 #define CONTROLLER_COUNT 11
 
diff --git a/include/svx/fontworkbar.hxx b/include/svx/fontworkbar.hxx
index f3f06b7..2b2ee195 100644
--- a/include/svx/fontworkbar.hxx
+++ b/include/svx/fontworkbar.hxx
@@ -35,7 +35,7 @@ namespace svx
 
 bool SVX_DLLPUBLIC checkForSelectedFontWork( SdrView* pSdrView, sal_uInt32& nCheckStatus );
 
-class SVX_DLLPUBLIC FontworkBar : public SfxShell
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FontworkBar : public SfxShell
 {
 public:
     TYPEINFO_OVERRIDE();
diff --git a/include/svx/fontworkgallery.hxx b/include/svx/fontworkgallery.hxx
index 7bd4534..56787ec 100644
--- a/include/svx/fontworkgallery.hxx
+++ b/include/svx/fontworkgallery.hxx
@@ -48,7 +48,7 @@ class SfxBindings;
 namespace svx
 {
 
-class SVX_DLLPUBLIC FontWorkShapeTypeControl : public SfxToolBoxControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FontWorkShapeTypeControl : public SfxToolBoxControl
 {
 public:
     SFX_DECL_TOOLBOX_CONTROL();
@@ -60,9 +60,7 @@ public:
     virtual SfxPopupWindow*     CreatePopupWindow() SAL_OVERRIDE;
 };
 
-
-
-class FontworkCharacterSpacingDialog : public ModalDialog
+class SAL_WARN_UNUSED FontworkCharacterSpacingDialog : public ModalDialog
 {
     MetricField* m_pMtrScale;
 
@@ -72,8 +70,7 @@ public:
     sal_Int32 getScale() const;
 };
 
-
-class SVX_DLLPUBLIC FontWorkGalleryDialog : public ModalDialog
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FontWorkGalleryDialog : public ModalDialog
 {
     ValueSet*           mpCtlFavorites;
     OKButton*           mpOKButton;
diff --git a/include/svx/formatpaintbrushctrl.hxx b/include/svx/formatpaintbrushctrl.hxx
index 8760cf8..363f884 100644
--- a/include/svx/formatpaintbrushctrl.hxx
+++ b/include/svx/formatpaintbrushctrl.hxx
@@ -29,11 +29,10 @@ namespace svx
 {
 
 
-
 /**
 */
 
-class SVX_DLLPUBLIC FormatPaintBrushToolBoxControl : public SfxToolBoxControl
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FormatPaintBrushToolBoxControl : public SfxToolBoxControl
 {
 public:
     SFX_DECL_TOOLBOX_CONTROL();
diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx
index 652a2ed..ef47754 100644
--- a/include/svx/framelink.hxx
+++ b/include/svx/framelink.hxx
@@ -104,7 +104,7 @@ enum RefMode
                                 |
                                 |<- middle of the frame border
  */
-class SVX_DLLPUBLIC Style
+class SVX_DLLPUBLIC SAL_WARN_UNUSED Style
 {
 public:
     /** Constructs an invisible frame style. */
@@ -187,7 +187,7 @@ inline bool operator>=( const Style& rL, const Style& rR ) { return !(rL < rR);
     It is dependent on the context, how the value is interpreted, i.e. it may
     specify the angle to a horizontal or vertical frame border.
  */
-class DiagStyle : public Style
+class SAL_WARN_UNUSED DiagStyle : public Style
 {
 public:
     /** Constructs an invisible diagonal frame style. */
diff --git a/include/svx/framelinkarray.hxx b/include/svx/framelinkarray.hxx
index 0fbaf43..2e4b8bf 100644
--- a/include/svx/framelinkarray.hxx
+++ b/include/svx/framelinkarray.hxx
@@ -58,7 +58,7 @@ struct ArrayImpl;
     whether to mirror the double frame styles, and whether to swap diagonal
     frame borders.
  */
-class SVX_DLLPUBLIC Array
+class SVX_DLLPUBLIC SAL_WARN_UNUSED Array
 {
 public:
     /** Constructs an empty array. */
@@ -383,8 +383,6 @@ private:
     ArrayImplPtr        mxImpl;
 };
 
-
-
 } // namespace frame
 } // namespace svx
 
diff --git a/include/svx/frmdirlbox.hxx b/include/svx/frmdirlbox.hxx
index 80bd1b1..d584acc 100644
--- a/include/svx/frmdirlbox.hxx
+++ b/include/svx/frmdirlbox.hxx
@@ -36,7 +36,7 @@ namespace svx {
     The control works on the SvxFrameDirection enumeration (i.e. left-to-right,
     right-to-left), used i.e. in conjunction with the SvxFrameDirectionItem.
  */
-class SVX_DLLPUBLIC FrameDirectionListBox : public ListBox
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FrameDirectionListBox : public ListBox
 {
 public:
     explicit            FrameDirectionListBox( vcl::Window* pParent, WinBits nBits );
@@ -69,7 +69,7 @@ typedef FrameDirectionListBox FrameDirListBox;
 
 
 /** Wrapper for usage of a FrameDirectionListBox in item connections. */
-class SVX_DLLPUBLIC FrameDirListBoxWrapper : public sfx::SingleControlWrapper< FrameDirListBox, SvxFrameDirection >
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FrameDirListBoxWrapper : public sfx::SingleControlWrapper< FrameDirListBox, SvxFrameDirection >
 {
 public:
     explicit            FrameDirListBoxWrapper( FrameDirListBox& rListBox );
diff --git a/include/svx/frmsel.hxx b/include/svx/frmsel.hxx
index e92271b..aa34ef6 100644
--- a/include/svx/frmsel.hxx
+++ b/include/svx/frmsel.hxx
@@ -80,7 +80,7 @@ enum FrameBorderState
 
 
 
-class SVX_DLLPUBLIC FrameSelector : public Control
+class SVX_DLLPUBLIC SAL_WARN_UNUSED FrameSelector : public Control
 {
 public:
     FrameSelector(vcl::Window* pParent);


More information about the Libreoffice-commits mailing list