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

loplugin:unusedfields

Change-Id: I1400ca0af2c357dff06e5f733ec62b13d6a96461
Reviewed-on: https://gerrit.libreoffice.org/30861Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6b4eaa7e
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
namespace binaryurp { namespace binaryurp {
css::uno::Reference< css::uno::XInterface > BridgeFactory::static_create( css::uno::Reference< css::uno::XInterface > BridgeFactory::static_create(
css::uno::Reference< css::uno::XComponentContext > const & xContext) css::uno::Reference< css::uno::XComponentContext > const & /*xContext*/)
{ {
return static_cast< cppu::OWeakObject * >(new BridgeFactory(xContext)); return static_cast< cppu::OWeakObject * >(new BridgeFactory);
} }
OUString BridgeFactory::static_getImplementationName() { OUString BridgeFactory::static_getImplementationName() {
...@@ -76,11 +76,9 @@ void BridgeFactory::removeBridge( ...@@ -76,11 +76,9 @@ void BridgeFactory::removeBridge(
} }
} }
BridgeFactory::BridgeFactory( BridgeFactory::BridgeFactory():
css::uno::Reference< css::uno::XComponentContext > const & context): BridgeFactoryBase(m_aMutex)
BridgeFactoryBase(m_aMutex), context_(context)
{ {
assert(context.is());
} }
BridgeFactory::~BridgeFactory() {} BridgeFactory::~BridgeFactory() {}
......
...@@ -78,9 +78,7 @@ private: ...@@ -78,9 +78,7 @@ private:
BridgeFactory(const BridgeFactory&) = delete; BridgeFactory(const BridgeFactory&) = delete;
BridgeFactory& operator=(const BridgeFactory&) = delete; BridgeFactory& operator=(const BridgeFactory&) = delete;
explicit BridgeFactory( BridgeFactory();
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
const & context);
virtual ~BridgeFactory() override; virtual ~BridgeFactory() override;
...@@ -129,8 +127,6 @@ private: ...@@ -129,8 +127,6 @@ private:
com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > > com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > >
BridgeMap; BridgeMap;
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
context_;
BridgeList unnamed_; BridgeList unnamed_;
BridgeMap named_; BridgeMap named_;
}; };
......
...@@ -50,8 +50,6 @@ struct MaterialParameters ...@@ -50,8 +50,6 @@ struct MaterialParameters
bool twoSidesLighting; bool twoSidesLighting;
float shininess; float shininess;
float pad;
float pad1;
}; };
struct LightSource struct LightSource
......
...@@ -123,7 +123,6 @@ public: ...@@ -123,7 +123,6 @@ public:
RscString aStringLiteral; RscString aStringLiteral;
RscLangEnum aLangType; RscLangEnum aLangType;
RscLangArray aLangString; RscLangArray aLangString;
RscLangArray aLangShort;
RscError* pEH; // error handler RscError* pEH; // error handler
RscNameTable aNmTb; // name table RscNameTable aNmTb; // name table
......
...@@ -58,7 +58,6 @@ RscTypCont::RscTypCont( RscError * pErrHdl, ...@@ -58,7 +58,6 @@ RscTypCont::RscTypCont( RscError * pErrHdl,
, aStringLiteral( pHS->getID( "Chars" ), RSC_NOTYPE ) , aStringLiteral( pHS->getID( "Chars" ), RSC_NOTYPE )
, aLangType() , aLangType()
, aLangString( pHS->getID( "Lang_Chars" ), RSC_NOTYPE, &aString, &aLangType ) , aLangString( pHS->getID( "Lang_Chars" ), RSC_NOTYPE, &aString, &aLangType )
, aLangShort( pHS->getID( "Lang_short" ), RSC_NOTYPE, &aShort, &aLangType )
, pEH(pErrHdl) , pEH(pErrHdl)
, nFlags( nFlagsP ) , nFlags( nFlagsP )
{ {
......
...@@ -52,7 +52,6 @@ struct ImplImageList ...@@ -52,7 +52,6 @@ struct ImplImageList
ImageAryDataNameHash maNameHash; ImageAryDataNameHash maNameHash;
OUString maPrefix; OUString maPrefix;
Size maImageSize; Size maImageSize;
sal_uIntPtr mnRefCount;
ImplImageList(); ImplImageList();
ImplImageList( const ImplImageList &aSrc ); ImplImageList( const ImplImageList &aSrc );
...@@ -65,8 +64,6 @@ struct ImplImageList ...@@ -65,8 +64,6 @@ struct ImplImageList
struct ImplImage struct ImplImage
{ {
sal_uIntPtr mnRefCount;
BitmapChecksum maBitmapChecksum; BitmapChecksum maBitmapChecksum;
std::unique_ptr<BitmapEx> mpBitmapEx; std::unique_ptr<BitmapEx> mpBitmapEx;
......
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
#include <memory> #include <memory>
ImplImage::ImplImage() ImplImage::ImplImage()
: mnRefCount(1) : maBitmapChecksum(0)
, maBitmapChecksum(0)
, mpBitmapEx() , mpBitmapEx()
, maDisabledBitmapEx() , maDisabledBitmapEx()
{ {
......
...@@ -30,14 +30,12 @@ ...@@ -30,14 +30,12 @@
#include <memory> #include <memory>
ImplImageList::ImplImageList() ImplImageList::ImplImageList()
: mnRefCount(1)
{ {
} }
ImplImageList::ImplImageList( const ImplImageList &aSrc ) ImplImageList::ImplImageList( const ImplImageList &aSrc )
: maPrefix(aSrc.maPrefix) : maPrefix(aSrc.maPrefix)
, maImageSize(aSrc.maImageSize) , maImageSize(aSrc.maImageSize)
, mnRefCount(1)
{ {
maImages.reserve( aSrc.maImages.size() ); maImages.reserve( aSrc.maImages.size() );
for ( std::vector<ImageAryData *>::const_iterator aIt = aSrc.maImages.begin(), aEnd = aSrc.maImages.end(); aIt != aEnd; ++aIt ) for ( std::vector<ImageAryData *>::const_iterator aIt = aSrc.maImages.begin(), aEnd = aSrc.maImages.end(); aIt != aEnd; ++aIt )
......
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