loplugin:unusedfields in lingu,lotuswordpro,mysqlc

Change-Id: I5866c8d95e04714e81a45e73bf00a430859a4327
This commit is contained in:
Noel Grandin
2015-12-22 09:58:45 +02:00
parent d691385058
commit 1b80ad7246
6 changed files with 5 additions and 13 deletions

View File

@@ -70,7 +70,6 @@ class Hyphenator :
sal_Int32 numdict; sal_Int32 numdict;
::cppu::OInterfaceContainerHelper aEvtListeners; ::cppu::OInterfaceContainerHelper aEvtListeners;
Reference< XMultiServiceFactory > rSMgr;
linguistic::PropertyHelper_Hyphenation* pPropHelper; linguistic::PropertyHelper_Hyphenation* pPropHelper;
bool bDisposing; bool bDisposing;

View File

@@ -80,13 +80,12 @@ class LangGuess_Impl :
{ {
SimpleGuesser m_aGuesser; SimpleGuesser m_aGuesser;
bool m_bInitialized; bool m_bInitialized;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
virtual ~LangGuess_Impl() {} virtual ~LangGuess_Impl() {}
void EnsureInitialized(); void EnsureInitialized();
public: public:
explicit LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext); LangGuess_Impl();
// XServiceInfo implementation // XServiceInfo implementation
virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception) override; virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception) override;
@@ -106,9 +105,8 @@ public:
void SetFingerPrintsDB( const OUString &fileName ) throw (RuntimeException); void SetFingerPrintsDB( const OUString &fileName ) throw (RuntimeException);
}; };
LangGuess_Impl::LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext) : LangGuess_Impl::LangGuess_Impl() :
m_bInitialized( false ), m_bInitialized( false )
m_xContext( rxContext )
{ {
} }
@@ -351,9 +349,9 @@ Sequence<OUString> SAL_CALL LangGuess_Impl::getSupportedServiceNames_Static( )
* @param xMgr service manager to if the components needs other component instances * @param xMgr service manager to if the components needs other component instances
*/ */
Reference< XInterface > SAL_CALL LangGuess_Impl_create( Reference< XInterface > SAL_CALL LangGuess_Impl_create(
Reference< XComponentContext > const & xContext ) Reference< XComponentContext > const & )
{ {
return static_cast< ::cppu::OWeakObject * >( new LangGuess_Impl(xContext) ); return static_cast< ::cppu::OWeakObject * >( new LangGuess_Impl );
} }
//#### EXPORTED ### functions to allow for registration and creation of the UNO component //#### EXPORTED ### functions to allow for registration and creation of the UNO component

View File

@@ -73,8 +73,6 @@ struct LangSvcEntries_Spell : public LangSvcEntries
struct LangSvcEntries_Grammar : public LangSvcEntries struct LangSvcEntries_Grammar : public LangSvcEntries
{ {
css::uno::Sequence< css::uno::Reference< css::linguistic2::XProofreader > > aSvcRefs;
LangSvcEntries_Grammar() : LangSvcEntries() {} LangSvcEntries_Grammar() : LangSvcEntries() {}
explicit LangSvcEntries_Grammar( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {} explicit LangSvcEntries_Grammar( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {}
}; };

View File

@@ -48,7 +48,6 @@ protected:
css::uno::Reference< css::uno::XComponentContext > mxContext; css::uno::Reference< css::uno::XComponentContext > mxContext;
css::uno::Reference< css::lang::XComponent > mxDoc; css::uno::Reference< css::lang::XComponent > mxDoc;
OUString msFilterName; OUString msFilterName;
css::uno::Reference< css::xml::sax::XDocumentHandler > mxHandler;
bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor )
throw (css::uno::RuntimeException, std::exception); throw (css::uno::RuntimeException, std::exception);

View File

@@ -97,7 +97,6 @@ private:
bool m_bContinue; bool m_bContinue;
bool m_bIsBulletSkipped; bool m_bIsBulletSkipped;
LwpObjectID m_aCurrentNumberingID; LwpObjectID m_aCurrentNumberingID;
std::unique_ptr<LwpNumberingOverride> m_pCurrentNumOverride;
}; };
inline void LwpBulletStyleMgr::SetFoundry(LwpFoundry* pFoundry) inline void LwpBulletStyleMgr::SetFoundry(LwpFoundry* pFoundry)

View File

@@ -104,7 +104,6 @@ namespace connectivity
// of all the Statement objects // of all the Statement objects
// for this Connection // for this Connection
rtl::OUString m_sUser; // the user name
MysqlCDriver& m_rDriver; // Pointer to the owning driver object MysqlCDriver& m_rDriver; // Pointer to the owning driver object
sql::Driver* cppDriver; sql::Driver* cppDriver;