summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-17 20:59:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-21 09:30:56 +0100
commit08642a115e8bb936fa914b6682ca6be9e08350fd (patch)
tree1c549659cc67f8257b9bc75fea3985e5e0e399aa
parent0e8218d9d880fa4be972de3decd9cd42f55472c3 (diff)
add some SAL_WARN_UNUSED
Change-Id: I6f52c91d6b355c9aa0e0bb28990745c4eb4be5ac
-rw-r--r--include/svx/f3dchild.hxx2
-rw-r--r--include/svx/fillctrl.hxx4
-rw-r--r--include/svx/float3d.hxx6
-rw-r--r--include/svx/fmdmod.hxx2
-rw-r--r--include/svx/fmdpage.hxx2
-rw-r--r--include/svx/fmgridcl.hxx4
-rw-r--r--include/svx/fmgridif.hxx16
-rw-r--r--include/svx/fmmodel.hxx2
-rw-r--r--include/svx/fmobjfac.hxx7
-rw-r--r--include/svx/fmpage.hxx2
-rw-r--r--include/svx/fmshell.hxx9
-rw-r--r--include/svx/fmsrccfg.hxx2
-rw-r--r--include/svx/fmsrcimp.hxx17
-rw-r--r--include/svx/fmtools.hxx10
-rw-r--r--include/svx/fmview.hxx2
-rw-r--r--include/svx/fntctl.hxx4
-rw-r--r--include/svx/fntctrl.hxx2
-rw-r--r--include/svx/fntszctl.hxx4
-rw-r--r--include/svx/fontlb.hxx6
-rw-r--r--include/svx/fontwork.hxx6
-rw-r--r--include/svx/fontworkbar.hxx2
-rw-r--r--include/svx/fontworkgallery.hxx9
-rw-r--r--include/svx/formatpaintbrushctrl.hxx3
-rw-r--r--include/svx/framelink.hxx4
-rw-r--r--include/svx/framelinkarray.hxx4
-rw-r--r--include/svx/frmdirlbox.hxx4
-rw-r--r--include/svx/frmsel.hxx2
27 files changed, 57 insertions, 80 deletions
diff --git a/include/svx/f3dchild.hxx b/include/svx/f3dchild.hxx
index a306f2f3d7fc..4bc6aad3ac27 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 c8878d9f8355..60955a6a6219 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 fcc6dce4f987..e05f9d590c84 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 8a5a1676a646..86acf2258480 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 ba7e8ef5a759..d40d6f4e7b7f 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 f373f5e59787..934293e4e50a 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 2d31c97f3e8c..8556a13710e1 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 03f65dfe399b..a78bf15e4065 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 d80a7134080a..36696cdbceb8 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 74d3ec11d5c6..ccadf5b3332f 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 5c568ded8ed5..713ff8085b7a 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 1e1150654685..9ebf527960c9 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 6a5c23991f37..c94731e7d695 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 225c77324979..06b8a329a334 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 76b88ab457c3..a633b0840b2e 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 b37575c131eb..bc38265b3c26 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 f6c276a7c10c..7ba6e1ad9bde 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 2c7562f1cd64..1e514ea301c1 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 1b50e673d5bb..dcd6cee74a2e 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 283b631f205b..988c3ab2ec29 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 f3f06b73fabd..2b2ee1952438 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 7bd4534a83ae..56787ec3df65 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 8760cf867d8a..363f884d9f57 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 652a2edb9e12..ef4775403ce2 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 0fbaf43870c7..2e4b8bf5c94d 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 80bd1b12f0ad..d584acc91104 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 e92271b44d06..aa34ef62c504 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);