summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-21 13:44:24 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 13:51:29 +0200
commitf4e703aa39e9c294441b6dd86189d8aff32db8bf (patch)
tree6e5c3dd04760702e160b2d068704da093c7e6a48 /stoc
parent3785f82e26c33c385494229be3bcfbe2daffe872 (diff)
loplugin:unusedfields in sfx2,slideshow,starmath,stoc
Change-Id: If3622b23c45dd3a2a4e9869452142d1f6b47919e
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/base.hxx1
-rw-r--r--stoc/source/corereflection/crefl.cxx1
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx1
-rw-r--r--stoc/source/uriproc/ExternalUriReferenceTranslator.cxx10
4 files changed, 3 insertions, 10 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index fc081a69f576..f28a600ac75a 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -82,7 +82,6 @@ class IdlReflectionServiceImpl
, public css::lang::XServiceInfo
{
::osl::Mutex _aComponentMutex;
- css::uno::Reference< css::lang::XMultiServiceFactory > _xMgr;
css::uno::Reference< css::container::XHierarchicalNameAccess > _xTDMgr;
// caching
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index 09461f4107c7..3304233caf3f 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -60,7 +60,6 @@ static OUString core_getImplementationName()
IdlReflectionServiceImpl::IdlReflectionServiceImpl(
const Reference< XComponentContext > & xContext )
: OComponentHelper( _aComponentMutex )
- , _xMgr( xContext->getServiceManager(), UNO_QUERY )
, _aElements( CACHE_SIZE )
{
xContext->getValueByName(
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index 1fdf14f19a31..b453c95edbb0 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -262,7 +262,6 @@ private:
Mutex aMutex;
HashSet_Ref aImplementationMap;
HashSet_Ref::iterator aIt;
- Reference<XInterface > xNext;
};
ImplementationEnumeration_Impl::~ImplementationEnumeration_Impl() {}
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
index 3dde5b31539c..7c81651d87d1 100644
--- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
+++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
@@ -46,9 +46,7 @@ class Translator:
private boost::noncopyable
{
public:
- explicit Translator(
- css::uno::Reference< css::uno::XComponentContext > const & context):
- m_context(context) {}
+ Translator() {}
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException, std::exception) override;
@@ -69,8 +67,6 @@ public:
private:
virtual ~Translator() {}
-
- css::uno::Reference< css::uno::XComponentContext > m_context;
};
OUString Translator::getImplementationName()
@@ -190,10 +186,10 @@ OUString Translator::translateToExternal(
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
-com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation(css::uno::XComponentContext* rxContext,
+com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation(css::uno::XComponentContext* ,
css::uno::Sequence<css::uno::Any> const &)
{
- return ::cppu::acquire(new Translator(rxContext));
+ return ::cppu::acquire(new Translator);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */