Kaydet (Commit) fc8f32ad authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unnnecessaryvirtual in vcl

Change-Id: Ifa8bfafb2e527ce5976f3bd310d107cb2840a5f6
Reviewed-on: https://gerrit.libreoffice.org/30531Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 5f77e6e9
......@@ -31,7 +31,7 @@ enum class ImageType
LAST = Size32,
};
class VCL_DLLPUBLIC CommandImageResolver
class VCL_DLLPUBLIC CommandImageResolver final
{
private:
typedef std::unordered_map<OUString, OUString, OUStringHash > CommandToImageNameMap;
......@@ -47,7 +47,7 @@ private:
public:
CommandImageResolver();
virtual ~CommandImageResolver();
~CommandImageResolver();
bool registerCommands(css::uno::Sequence<OUString>& aCommandSequence);
Image getImageFromCommandURL(ImageType nImageType, const OUString& rCommandURL);
......
......@@ -22,13 +22,13 @@
#include <vcl/graph.hxx>
class VCL_DLLPUBLIC GraphicNativeMetadata
class VCL_DLLPUBLIC GraphicNativeMetadata final
{
sal_uInt16 mRotation;
public:
GraphicNativeMetadata();
virtual ~GraphicNativeMetadata();
~GraphicNativeMetadata();
bool read(Graphic& rGraphic);
sal_uInt16 getRotation() { return mRotation;}
......
......@@ -22,7 +22,7 @@
#include <vcl/graph.hxx>
class VCL_DLLPUBLIC GraphicNativeTransform
class VCL_DLLPUBLIC GraphicNativeTransform final
{
Graphic& mrGraphic;
......@@ -32,7 +32,7 @@ class VCL_DLLPUBLIC GraphicNativeTransform
public:
GraphicNativeTransform(Graphic& rGraphic);
virtual ~GraphicNativeTransform();
~GraphicNativeTransform();
bool canBeRotated();
bool rotate(sal_uInt16 aRotation);
......
......@@ -66,7 +66,7 @@ struct EndPopupModeData
* All DockingWindows should be converted the new class.
*/
class ImplDockingWindowWrapper
class ImplDockingWindowWrapper final
{
friend class ::vcl::Window;
friend class DockingManager;
......@@ -115,7 +115,7 @@ private:
public:
ImplDockingWindowWrapper( const vcl::Window *pWindow );
virtual ~ImplDockingWindowWrapper();
~ImplDockingWindowWrapper();
vcl::Window* GetWindow() { return mpDockingWindow; }
bool ImplStartDocking( const Point& rPos );
......
......@@ -54,7 +54,7 @@ enum class MtfConversion
typedef Color (*ColorExchangeFnc)( const Color& rColor, const void* pColParam );
typedef BitmapEx (*BmpExchangeFnc)( const BitmapEx& rBmpEx, const void* pBmpParam );
class VCL_DLLPUBLIC GDIMetaFile
class VCL_DLLPUBLIC GDIMetaFile final
{
private:
::std::vector< MetaAction* > m_aList;
......@@ -105,7 +105,7 @@ protected:
public:
GDIMetaFile();
GDIMetaFile( const GDIMetaFile& rMtf );
virtual ~GDIMetaFile();
~GDIMetaFile();
GDIMetaFile& operator=( const GDIMetaFile& rMtf );
bool operator==( const GDIMetaFile& rMtf ) const;
......
......@@ -130,7 +130,7 @@ enum class GraphicFileFormat
};
class VCL_DLLPUBLIC GraphicDescriptor
class VCL_DLLPUBLIC GraphicDescriptor final
{
SvStream* pFileStm;
......@@ -190,7 +190,7 @@ public:
derived from the extension */
GraphicDescriptor( SvStream& rInStream, const OUString* pPath );
virtual ~GraphicDescriptor();
~GraphicDescriptor();
/** starts the detection
......
......@@ -17,7 +17,7 @@
namespace vcl
{
class VCL_DLLPUBLIC RenderSettings
class VCL_DLLPUBLIC RenderSettings final
{
OutDevState maOutDevState;
std::unique_ptr<Wallpaper> mpBackground;
......@@ -25,9 +25,6 @@ class VCL_DLLPUBLIC RenderSettings
public:
RenderSettings()
{}
virtual ~RenderSettings()
{}
};
}
......
......@@ -14,11 +14,11 @@
#include <vcl/bitmap.hxx>
#include <vcl/bitmapaccess.hxx>
class VCL_DLLPUBLIC BitmapSymmetryCheck
class VCL_DLLPUBLIC BitmapSymmetryCheck final
{
public:
BitmapSymmetryCheck();
virtual ~BitmapSymmetryCheck();
~BitmapSymmetryCheck();
static bool check(Bitmap& rBitmap);
......
......@@ -34,11 +34,11 @@ class ImplPreMatchFontSubstitution;
// TODO: merge with ImplFontCache
// TODO: rename to LogicalFontManager
class VCL_PLUGIN_PUBLIC PhysicalFontCollection
class VCL_PLUGIN_PUBLIC PhysicalFontCollection final
{
public:
explicit PhysicalFontCollection();
virtual ~PhysicalFontCollection();
~PhysicalFontCollection();
// fill the list with device font faces
void Add( PhysicalFontFace* );
......
......@@ -27,11 +27,11 @@
namespace vcl { struct TrueTypeFont; } ///< SFT's idea of a TTF font
class FontSubsetInfo
class FontSubsetInfo final
{
public:
explicit FontSubsetInfo();
virtual ~FontSubsetInfo();
~FontSubsetInfo();
enum FontType {
NO_FONT = 0,
......
......@@ -31,7 +31,7 @@ class GfxLink;
struct ImpSwapFile;
class GraphicConversionParameters;
class ImpGraphic
class ImpGraphic final
{
friend class Graphic;
......@@ -62,7 +62,7 @@ private:
ImpGraphic( const Animation& rAnimation );
ImpGraphic( const GDIMetaFile& rMtf );
public:
virtual ~ImpGraphic();
~ImpGraphic();
private:
ImpGraphic& operator=( const ImpGraphic& rImpGraphic );
......
......@@ -15,7 +15,7 @@
#include <opengl/texture.hxx>
class VCL_DLLPUBLIC OpenGLFramebuffer
class VCL_DLLPUBLIC OpenGLFramebuffer final
{
private:
GLuint mnId;
......@@ -25,7 +25,7 @@ private:
public:
OpenGLFramebuffer();
virtual ~OpenGLFramebuffer();
~OpenGLFramebuffer();
int GetWidth() const { return mnWidth; };
int GetHeight() const { return mnHeight; };
......
......@@ -73,7 +73,7 @@ public:
GLuint AddStencil();
};
class VCL_DLLPUBLIC OpenGLTexture
class VCL_DLLPUBLIC OpenGLTexture final
{
private:
// if the rect size doesn't match the mpImpl one, this instance
......@@ -98,7 +98,7 @@ public:
OpenGLTexture( int nX, int nY, int nWidth, int nHeight );
OpenGLTexture( const OpenGLTexture& rTexture );
OpenGLTexture( const OpenGLTexture& rTexture, int nX, int nY, int nWidth, int nHeight );
virtual ~OpenGLTexture();
~OpenGLTexture();
bool IsUnique() const;
......
......@@ -84,11 +84,11 @@ namespace vcl
/** a class which allows rendering text of a Control onto a device, by taking into account the metrics of
a reference device.
*/
class ControlTextRenderer
class ControlTextRenderer final
{
public:
ControlTextRenderer( const Control& _rControl, OutputDevice& _rTargetDevice, OutputDevice& _rReferenceDevice );
virtual ~ControlTextRenderer();
~ControlTextRenderer();
Rectangle DrawText( const Rectangle& _rRect,
const OUString& _rText, DrawTextFlags _nStyle,
......
......@@ -144,11 +144,11 @@ private:
mutable long mnLruValue;
};
class VCL_DLLPUBLIC FreetypeFont
class VCL_DLLPUBLIC FreetypeFont final
{
public:
FreetypeFont( const FontSelectPattern&, FreetypeFontInfo* );
virtual ~FreetypeFont();
~FreetypeFont();
const OString& GetFontFileName() const;
bool TestFont() const { return mbFaceOk;}
......
......@@ -41,7 +41,7 @@ enum Tag {
ORIENTATION = 0x0112
};
class Exif
class Exif final
{
private:
Orientation maOrientation;
......@@ -68,7 +68,7 @@ private:
public:
Exif();
virtual ~Exif();
~Exif();
bool hasExif() { return mbExifPresent;}
......
......@@ -22,7 +22,7 @@
#include <vcl/graph.hxx>
class JpegTransform
class JpegTransform final
{
sal_uInt16 maRotate;
SvStream& mrInputStream;
......@@ -31,7 +31,7 @@ class JpegTransform
public:
JpegTransform(SvStream& rInputStream, SvStream& rOutputStream);
virtual ~JpegTransform();
~JpegTransform();
void setRotate(sal_uInt16 aRotate);
void perform();
......
......@@ -26,7 +26,7 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/task/XStatusIndicator.hpp>
class JPEGWriter
class JPEGWriter final
{
SvStream& mrStream;
BitmapReadAccess* mpReadAccess;
......@@ -45,8 +45,6 @@ public:
const css::uno::Sequence< css::beans::PropertyValue >* pFilterData,
bool* pExportWasGrey );
virtual ~JPEGWriter() {};
void* GetScanline( long nY );
bool Write( const Graphic& rGraphic );
......
......@@ -434,7 +434,7 @@ struct BSaveStruct
};
class WinMtfOutput
class WinMtfOutput final
{
WinMtfPathObj aPathObj;
WinMtfClipPath aClipPath;
......@@ -621,7 +621,7 @@ public:
void PassEMFPlusHeaderInfo();
explicit WinMtfOutput( GDIMetaFile& rGDIMetaFile );
virtual ~WinMtfOutput();
~WinMtfOutput();
};
class WinMtf
......
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