Various loplugin in --enable-gtk3-kde5 code
Change-Id: I5d5bb6b57a9e9ed2c66d304c18fe7ef233aae072
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include "sal/config.h"
|
||||
#include <sal/config.h>
|
||||
|
||||
#include "kde5access.hxx"
|
||||
|
||||
@@ -290,7 +290,7 @@ css::beans::Optional<css::uno::Any> getValue(OUString const& id)
|
||||
}
|
||||
else if (id == "ooInetProxyType")
|
||||
{
|
||||
int nProxyType;
|
||||
sal_Int32 nProxyType;
|
||||
switch (KProtocolManager::proxyType())
|
||||
{
|
||||
case KProtocolManager::ManualProxy: // Proxies are manually configured
|
||||
@@ -303,7 +303,7 @@ css::beans::Optional<css::uno::Any> getValue(OUString const& id)
|
||||
default: // No proxy is used
|
||||
nProxyType = 0;
|
||||
}
|
||||
return css::beans::Optional<css::uno::Any>(true, uno::makeAny((sal_Int32)nProxyType));
|
||||
return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nProxyType));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -56,12 +56,12 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
OUString SAL_CALL getServiceImplementationName()
|
||||
OUString getServiceImplementationName()
|
||||
{
|
||||
return OUString("com.sun.star.comp.configuration.backend.KDE5Backend");
|
||||
}
|
||||
|
||||
css::uno::Sequence<OUString> SAL_CALL getServiceSupportedServiceNames()
|
||||
css::uno::Sequence<OUString> getServiceSupportedServiceNames()
|
||||
{
|
||||
OUString name("com.sun.star.configuration.backend.KDE5Backend");
|
||||
return css::uno::Sequence<OUString>(&name, 1);
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
Service();
|
||||
|
||||
private:
|
||||
virtual ~Service() {}
|
||||
virtual ~Service() override {}
|
||||
|
||||
virtual OUString SAL_CALL getImplementationName() override
|
||||
{
|
||||
@@ -204,7 +204,7 @@ Service::Service()
|
||||
|
||||
void Service::setPropertyValue(OUString const&, css::uno::Any const&)
|
||||
{
|
||||
throw css::lang::IllegalArgumentException(OUString("setPropertyValue not supported"),
|
||||
throw css::lang::IllegalArgumentException("setPropertyValue not supported",
|
||||
static_cast<cppu::OWeakObject*>(this), -1);
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ css::uno::Any Service::getPropertyValue(OUString const& PropertyName)
|
||||
}
|
||||
|
||||
css::uno::Reference<css::uno::XInterface>
|
||||
SAL_CALL createInstance(css::uno::Reference<css::uno::XComponentContext> const&)
|
||||
createInstance(css::uno::Reference<css::uno::XComponentContext> const&)
|
||||
{
|
||||
return static_cast<cppu::OWeakObject*>(new Service);
|
||||
}
|
||||
@@ -242,9 +242,8 @@ static cppu::ImplementationEntry const services[]
|
||||
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 } };
|
||||
}
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL kde5be1_component_getFactory(char const* pImplName,
|
||||
void* pServiceManager,
|
||||
void* pRegistryKey)
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT void*
|
||||
kde5be1_component_getFactory(char const* pImplName, void* pServiceManager, void* pRegistryKey)
|
||||
{
|
||||
return cppu::component_getFactoryHelper(pImplName, pServiceManager, pRegistryKey, services);
|
||||
}
|
||||
|
Reference in New Issue
Block a user