loplugin:unnecessaryvirtual
Change-Id: I7b1aa65a557f3855939ad8b183bba8ff656946f8 Reviewed-on: https://gerrit.libreoffice.org/29173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
5f8eb78d99
commit
fd22e36ff5
@@ -26,6 +26,20 @@ with open("loplugin.unnecessaryvirtual.report", "wt") as f:
|
|||||||
# windows-specific stuff
|
# windows-specific stuff
|
||||||
if clazz.startswith("canvas::"): continue
|
if clazz.startswith("canvas::"): continue
|
||||||
if clazz.startswith("psp::PrinterInfoManager"): continue
|
if clazz.startswith("psp::PrinterInfoManager"): continue
|
||||||
|
if clazz.startswith("DdeTopic::"): continue
|
||||||
|
if clazz == "basegfx::unotools::UnoPolyPolygon::void-modifying()const": continue
|
||||||
|
if clazz == "SalLayout::_Bool-IsKashidaPosValid(int,)const": continue
|
||||||
|
if clazz == "SalLayout::void-DisableGlyphInjection(_Bool,)": continue
|
||||||
|
# Linux-TDF specific
|
||||||
|
if clazz == "X11SalFrame::void-updateGraphics(_Bool,)": continue
|
||||||
|
# OSX specific
|
||||||
|
if clazz == "SalFrame::void-SetRepresentedURL(const class rtl::OUString &,)": continue
|
||||||
|
if clazz == "SalMenu::_Bool-AddMenuBarButton(const struct SalMenuButtonItem &,)": continue
|
||||||
|
if clazz == "SalMenu::class Rectangle-GetMenuBarButtonRectPixel(sal_uInt16,class SalFrame *,)": continue
|
||||||
|
if clazz == "SalMenu::void-RemoveMenuBarButton(sal_uInt16,)": continue
|
||||||
|
if clazz == "SalLayout::_Bool-DrawTextSpecial(class SalGraphics &,sal_uInt32,)const": continue
|
||||||
|
# GTK < 3
|
||||||
|
if clazz == "GtkSalDisplay::int-CaptureMouse(class SalFrame *,)": continue
|
||||||
# some test magic
|
# some test magic
|
||||||
if clazz.startswith("apitest::"): continue
|
if clazz.startswith("apitest::"): continue
|
||||||
f.write(clazz + "\n")
|
f.write(clazz + "\n")
|
||||||
|
@@ -100,7 +100,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
// returns the internal name of this style
|
// returns the internal name of this style
|
||||||
virtual const OUString& GetName() const;
|
const OUString& GetName() const;
|
||||||
|
|
||||||
// sets the internal name of this style.
|
// sets the internal name of this style.
|
||||||
//
|
//
|
||||||
|
@@ -943,8 +943,8 @@ private:
|
|||||||
public:
|
public:
|
||||||
void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper );
|
void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper );
|
||||||
|
|
||||||
virtual void Erase();
|
void Erase();
|
||||||
virtual void Erase( const Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); }
|
void Erase( const Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void DrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
|
void DrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
|
||||||
@@ -1414,12 +1414,12 @@ public:
|
|||||||
const Image& rImage,
|
const Image& rImage,
|
||||||
sal_uInt16 nStyle = 0)
|
sal_uInt16 nStyle = 0)
|
||||||
*/
|
*/
|
||||||
virtual void DrawImage(
|
void DrawImage(
|
||||||
const Point& rPos,
|
const Point& rPos,
|
||||||
const Image& rImage,
|
const Image& rImage,
|
||||||
DrawImageFlags nStyle = DrawImageFlags::NONE );
|
DrawImageFlags nStyle = DrawImageFlags::NONE );
|
||||||
|
|
||||||
virtual void DrawImage(
|
void DrawImage(
|
||||||
const Point& rPos,
|
const Point& rPos,
|
||||||
const Size& rSize,
|
const Size& rSize,
|
||||||
const Image& rImage,
|
const Image& rImage,
|
||||||
|
@@ -220,7 +220,6 @@ protected:
|
|||||||
header();
|
header();
|
||||||
std::unique_ptr<Resetter> const pChanges(preTest(filename));
|
std::unique_ptr<Resetter> const pChanges(preTest(filename));
|
||||||
load(mpTestDocumentPath, filename);
|
load(mpTestDocumentPath, filename);
|
||||||
postTest(filename);
|
|
||||||
verify();
|
verify();
|
||||||
finish();
|
finish();
|
||||||
maTempFile.EnableKillingFile();
|
maTempFile.EnableKillingFile();
|
||||||
@@ -240,7 +239,6 @@ protected:
|
|||||||
load(mpTestDocumentPath, filename);
|
load(mpTestDocumentPath, filename);
|
||||||
postLoad(filename);
|
postLoad(filename);
|
||||||
reload(mpFilter, filename);
|
reload(mpFilter, filename);
|
||||||
postTest(filename);
|
|
||||||
verify();
|
verify();
|
||||||
finish();
|
finish();
|
||||||
maTempFile.EnableKillingFile();
|
maTempFile.EnableKillingFile();
|
||||||
@@ -260,7 +258,6 @@ protected:
|
|||||||
load(mpTestDocumentPath, filename);
|
load(mpTestDocumentPath, filename);
|
||||||
save(OUString::createFromAscii(mpFilter), maTempFile);
|
save(OUString::createFromAscii(mpFilter), maTempFile);
|
||||||
maTempFile.EnableKillingFile(false);
|
maTempFile.EnableKillingFile(false);
|
||||||
postTest(filename);
|
|
||||||
verify();
|
verify();
|
||||||
finish();
|
finish();
|
||||||
maTempFile.EnableKillingFile();
|
maTempFile.EnableKillingFile();
|
||||||
@@ -294,13 +291,6 @@ protected:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Override this function if some special filename-specific teardown is needed
|
|
||||||
*/
|
|
||||||
virtual void postTest(const char* /*filename*/)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override this function if calc layout is not needed
|
* Override this function if calc layout is not needed
|
||||||
*/
|
*/
|
||||||
|
@@ -83,7 +83,6 @@ public:
|
|||||||
initMailMergeJobAndArgs( filename, tablename, aDBName, "LOMM_", aWorkDir, file, selection );
|
initMailMergeJobAndArgs( filename, tablename, aDBName, "LOMM_", aWorkDir, file, selection );
|
||||||
|
|
||||||
verify();
|
verify();
|
||||||
postTest(filename);
|
|
||||||
finish();
|
finish();
|
||||||
|
|
||||||
::utl::removeTree(aWorkDir);
|
::utl::removeTree(aWorkDir);
|
||||||
|
@@ -153,7 +153,6 @@ public:
|
|||||||
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sMessage, RTL_TEXTENCODING_UTF8).getStr(), !xComponent.is());
|
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sMessage, RTL_TEXTENCODING_UTF8).getStr(), !xComponent.is());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
postTest(filename);
|
|
||||||
verify();
|
verify();
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user