Kaydet (Commit) 5537b135 authored tarafından Caolán McNamara's avatar Caolán McNamara

add some SAL_WARN_UNUSED

Change-Id: I6b8fb1d9b76f586a9a27d53f90e7686fcdf35077
üst 9c6021e1
...@@ -61,7 +61,7 @@ namespace svx ...@@ -61,7 +61,7 @@ namespace svx
/** class encapsulating the com::sun::star::sdb::DataAccessDescriptor service. /** class encapsulating the com::sun::star::sdb::DataAccessDescriptor service.
*/ */
class SVX_DLLPUBLIC ODataAccessDescriptor class SVX_DLLPUBLIC SAL_WARN_UNUSED ODataAccessDescriptor
{ {
protected: protected:
ODADescriptorImpl* m_pImpl; ODADescriptorImpl* m_pImpl;
......
...@@ -45,7 +45,7 @@ namespace svx ...@@ -45,7 +45,7 @@ namespace svx
This helper class controls such two UI elements. This helper class controls such two UI elements.
*/ */
class SVX_DLLPUBLIC DatabaseLocationInputController class SVX_DLLPUBLIC SAL_WARN_UNUSED DatabaseLocationInputController
{ {
public: public:
DatabaseLocationInputController( DatabaseLocationInputController(
......
...@@ -40,7 +40,7 @@ namespace svx ...@@ -40,7 +40,7 @@ namespace svx
//= OColumnTransferable //= OColumnTransferable
class SVX_DLLPUBLIC OColumnTransferable : public TransferableHelper class SVX_DLLPUBLIC SAL_WARN_UNUSED OColumnTransferable : public TransferableHelper
{ {
protected: protected:
ODataAccessDescriptor m_aDescriptor; ODataAccessDescriptor m_aDescriptor;
...@@ -166,7 +166,7 @@ namespace svx ...@@ -166,7 +166,7 @@ namespace svx
/** class for transferring data access objects (tables, queries, statements ...) /** class for transferring data access objects (tables, queries, statements ...)
*/ */
class SVX_DLLPUBLIC ODataAccessObjectTransferable : public TransferableHelper class SVX_DLLPUBLIC SAL_WARN_UNUSED ODataAccessObjectTransferable : public TransferableHelper
{ {
ODataAccessDescriptor m_aDescriptor; ODataAccessDescriptor m_aDescriptor;
OUString m_sCompatibleObjectDescription; OUString m_sCompatibleObjectDescription;
...@@ -254,7 +254,7 @@ namespace svx ...@@ -254,7 +254,7 @@ namespace svx
/** class for transferring multiple columns /** class for transferring multiple columns
*/ */
class SVX_DLLPUBLIC OMultiColumnTransferable : public TransferableHelper class SVX_DLLPUBLIC SAL_WARN_UNUSED OMultiColumnTransferable : public TransferableHelper
{ {
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDescriptors; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDescriptors;
......
...@@ -36,7 +36,7 @@ namespace svx ...@@ -36,7 +36,7 @@ namespace svx
//= OComponentTransferable //= OComponentTransferable
class SVX_DLLPUBLIC OComponentTransferable : public TransferableHelper class SVX_DLLPUBLIC SAL_WARN_UNUSED OComponentTransferable : public TransferableHelper
{ {
protected: protected:
ODataAccessDescriptor m_aDescriptor; ODataAccessDescriptor m_aDescriptor;
......
...@@ -30,7 +30,7 @@ namespace svxform ...@@ -30,7 +30,7 @@ namespace svxform
//= ODataAccessCharsetHelper //= ODataAccessCharsetHelper
class SVX_DLLPUBLIC ODataAccessCharsetHelper class SVX_DLLPUBLIC SAL_WARN_UNUSED ODataAccessCharsetHelper
{ {
protected: protected:
mutable ::rtl::Reference< ::connectivity::simple::IDataAccessCharSet > m_xCharsetHelper; mutable ::rtl::Reference< ::connectivity::simple::IDataAccessCharSet > m_xCharsetHelper;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
|* |*
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC E3dDefaultAttributes class SVX_DLLPUBLIC SAL_WARN_UNUSED E3dDefaultAttributes
{ {
private: private:
// Compound object // Compound object
......
...@@ -31,7 +31,7 @@ namespace svx { ...@@ -31,7 +31,7 @@ namespace svx {
class DialControlBmp : public VirtualDevice class SAL_WARN_UNUSED DialControlBmp : public VirtualDevice
{ {
public: public:
explicit DialControlBmp( vcl::Window& rParent ); explicit DialControlBmp( vcl::Window& rParent );
...@@ -75,7 +75,7 @@ private: ...@@ -75,7 +75,7 @@ private:
- Shows the value entered/modified in the numeric field. - Shows the value entered/modified in the numeric field.
- Enables/disables/shows/hides the field according to own state changes. - Enables/disables/shows/hides the field according to own state changes.
*/ */
class SVX_DLLPUBLIC DialControl : public Control class SVX_DLLPUBLIC SAL_WARN_UNUSED DialControl : public Control
{ {
public: public:
explicit DialControl( vcl::Window* pParent, WinBits nBits ); explicit DialControl( vcl::Window* pParent, WinBits nBits );
...@@ -164,10 +164,8 @@ private: ...@@ -164,10 +164,8 @@ private:
DECL_LINK( LinkedFieldModifyHdl, NumericField* ); DECL_LINK( LinkedFieldModifyHdl, NumericField* );
}; };
/** Wrapper for usage of a DialControl in item connections. */ /** Wrapper for usage of a DialControl in item connections. */
class SVX_DLLPUBLIC DialControlWrapper : public sfx::SingleControlWrapper< DialControl, sal_Int32 > class SVX_DLLPUBLIC SAL_WARN_UNUSED DialControlWrapper : public sfx::SingleControlWrapper< DialControl, sal_Int32 >
{ {
public: public:
explicit DialControlWrapper( DialControl& rDial ); explicit DialControlWrapper( DialControl& rDial );
...@@ -179,13 +177,9 @@ public: ...@@ -179,13 +177,9 @@ public:
virtual void SetControlValue( sal_Int32 nValue ) SAL_OVERRIDE; virtual void SetControlValue( sal_Int32 nValue ) SAL_OVERRIDE;
}; };
/** An item<->control connection for a DialControl. */ /** An item<->control connection for a DialControl. */
typedef sfx::ItemControlConnection< sfx::Int32ItemWrapper, DialControlWrapper > DialControlConnection; typedef sfx::ItemControlConnection< sfx::Int32ItemWrapper, DialControlWrapper > DialControlConnection;
} // namespace svx } // namespace svx
#endif #endif
......
...@@ -36,7 +36,7 @@ class E3dObject; ...@@ -36,7 +36,7 @@ class E3dObject;
#define PREVIEW_OBJECTTYPE_SPHERE 0x0000 #define PREVIEW_OBJECTTYPE_SPHERE 0x0000
#define PREVIEW_OBJECTTYPE_CUBE 0x0001 #define PREVIEW_OBJECTTYPE_CUBE 0x0001
class SVX_DLLPUBLIC Svx3DPreviewControl : public Control class SVX_DLLPUBLIC SAL_WARN_UNUSED Svx3DPreviewControl : public Control
{ {
protected: protected:
FmFormModel* mpModel; FmFormModel* mpModel;
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
virtual void Set3DAttributes(const SfxItemSet& rAttr); virtual void Set3DAttributes(const SfxItemSet& rAttr);
}; };
class SVX_DLLPUBLIC Svx3DLightControl : public Svx3DPreviewControl class SVX_DLLPUBLIC SAL_WARN_UNUSED Svx3DLightControl : public Svx3DPreviewControl
{ {
// Callback for interactive changes // Callback for interactive changes
Link maUserInteractiveChangeCallback; Link maUserInteractiveChangeCallback;
...@@ -141,7 +141,7 @@ public: ...@@ -141,7 +141,7 @@ public:
basegfx::B3DVector GetLightDirection(sal_uInt32 nNum) const; basegfx::B3DVector GetLightDirection(sal_uInt32 nNum) const;
}; };
class SVX_DLLPUBLIC SvxLightCtl3D : public Control class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxLightCtl3D : public Control
{ {
private: private:
// local controls // local controls
......
...@@ -38,7 +38,7 @@ namespace com { namespace sun { namespace star { namespace awt { ...@@ -38,7 +38,7 @@ namespace com { namespace sun { namespace star { namespace awt {
|* virtual method from the control. |* virtual method from the control.
\************************************************************************/ \************************************************************************/
class SvxTabPage : public SfxTabPage class SAL_WARN_UNUSED SvxTabPage : public SfxTabPage
{ {
public: public:
...@@ -61,7 +61,7 @@ typedef sal_uInt16 CTL_STATE; ...@@ -61,7 +61,7 @@ typedef sal_uInt16 CTL_STATE;
class SvxRectCtlAccessibleContext; class SvxRectCtlAccessibleContext;
class SvxPixelCtlAccessible; class SvxPixelCtlAccessible;
class SVX_DLLPUBLIC SvxRectCtl : public Control class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxRectCtl : public Control
{ {
private: private:
SVX_DLLPRIVATE void InitSettings( bool bForeground, bool bBackground ); SVX_DLLPRIVATE void InitSettings( bool bForeground, bool bBackground );
...@@ -133,7 +133,7 @@ public: ...@@ -133,7 +133,7 @@ public:
|* Preview control for the display of bitmaps |* Preview control for the display of bitmaps
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC SvxBitmapCtl class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxBitmapCtl
{ {
protected: protected:
Size aSize; Size aSize;
...@@ -157,7 +157,7 @@ public: ...@@ -157,7 +157,7 @@ public:
|* Control for editing bitmaps |* Control for editing bitmaps
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC SvxPixelCtl : public Control class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxPixelCtl : public Control
{ {
private: private:
using OutputDevice::SetLineColor; using OutputDevice::SetLineColor;
...@@ -221,7 +221,7 @@ public: ...@@ -221,7 +221,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC ColorLB : public ColorListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED ColorLB : public ColorListBox
{ {
public: public:
...@@ -236,7 +236,7 @@ public: ...@@ -236,7 +236,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC HatchingLB : public ListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED HatchingLB : public ListBox
{ {
XHatchListRef mpList; XHatchListRef mpList;
public: public:
...@@ -250,7 +250,7 @@ public: ...@@ -250,7 +250,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC GradientLB : public ListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED GradientLB : public ListBox
{ {
XGradientListRef mpList; XGradientListRef mpList;
public: public:
...@@ -266,7 +266,7 @@ public: ...@@ -266,7 +266,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC BitmapLB : public ListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED BitmapLB : public ListBox
{ {
public: public:
explicit BitmapLB(vcl::Window* pParent, WinBits aWB); explicit BitmapLB(vcl::Window* pParent, WinBits aWB);
...@@ -285,7 +285,7 @@ private: ...@@ -285,7 +285,7 @@ private:
/************************************************************************/ /************************************************************************/
class FillAttrLB : public ColorListBox class FillAttrLB SAL_WARN_UNUSED : public ColorListBox
{ {
private: private:
BitmapEx maBitmapEx; BitmapEx maBitmapEx;
...@@ -301,7 +301,7 @@ public: ...@@ -301,7 +301,7 @@ public:
/************************************************************************/ /************************************************************************/
class FillTypeLB : public ListBox class FillTypeLB SAL_WARN_UNUSED : public ListBox
{ {
public: public:
...@@ -313,7 +313,7 @@ public: ...@@ -313,7 +313,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC LineLB : public ListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED LineLB : public ListBox
{ {
private: private:
/// bitfield /// bitfield
...@@ -336,7 +336,7 @@ public: ...@@ -336,7 +336,7 @@ public:
/************************************************************************/ /************************************************************************/
class SVX_DLLPUBLIC LineEndLB : public ListBox class SVX_DLLPUBLIC SAL_WARN_UNUSED LineEndLB : public ListBox
{ {
public: public:
...@@ -355,7 +355,7 @@ class SdrObject; ...@@ -355,7 +355,7 @@ class SdrObject;
class SdrPathObj; class SdrPathObj;
class SdrModel; class SdrModel;
class SvxPreviewBase : public Control class SAL_WARN_UNUSED SvxPreviewBase : public Control
{ {
private: private:
SdrModel* mpModel; SdrModel* mpModel;
...@@ -389,7 +389,7 @@ public: ...@@ -389,7 +389,7 @@ public:
|* |*
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC SvxXLinePreview : public SvxPreviewBase class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxXLinePreview : public SvxPreviewBase
{ {
private: private:
SdrPathObj* mpLineObjA; SdrPathObj* mpLineObjA;
...@@ -421,7 +421,7 @@ public: ...@@ -421,7 +421,7 @@ public:
|* |*
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC SvxXRectPreview : public SvxPreviewBase class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxXRectPreview : public SvxPreviewBase
{ {
private: private:
SdrObject* mpRectangleObject; SdrObject* mpRectangleObject;
...@@ -442,7 +442,7 @@ public: ...@@ -442,7 +442,7 @@ public:
|* |*
\************************************************************************/ \************************************************************************/
class SVX_DLLPUBLIC SvxXShadowPreview : public SvxPreviewBase class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxXShadowPreview : public SvxPreviewBase
{ {
private: private:
Point maShadowOffset; Point maShadowOffset;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
// SvxColorListItem // SvxColorListItem
class SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxColorListItem: public SfxPoolItem
{ {
XColorListRef pColorList; XColorListRef pColorList;
...@@ -54,12 +54,8 @@ public: ...@@ -54,12 +54,8 @@ public:
void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; } void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
}; };
// SvxGradientListItem // SvxGradientListItem
class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxGradientListItem : public SfxPoolItem
class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
{ {
XGradientListRef pGradientList; XGradientListRef pGradientList;
...@@ -89,7 +85,7 @@ public: ...@@ -89,7 +85,7 @@ public:
// SvxHatchListItem // SvxHatchListItem
class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxHatchListItem : public SfxPoolItem
{ {
XHatchListRef pHatchList; XHatchListRef pHatchList;
...@@ -120,7 +116,7 @@ public: ...@@ -120,7 +116,7 @@ public:
// SvxBitmapListItem // SvxBitmapListItem
class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxBitmapListItem : public SfxPoolItem
{ {
XBitmapListRef pBitmapList; XBitmapListRef pBitmapList;
...@@ -151,7 +147,7 @@ public: ...@@ -151,7 +147,7 @@ public:
// SvxDashListItem // SvxDashListItem
class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxDashListItem : public SfxPoolItem
{ {
XDashListRef pDashList; XDashListRef pDashList;
...@@ -179,7 +175,7 @@ public: ...@@ -179,7 +175,7 @@ public:
// SvxLineEndListItem // SvxLineEndListItem
class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxLineEndListItem : public SfxPoolItem
{ {
XLineEndListRef pLineEndList; XLineEndListRef pLineEndList;
......
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