[Libreoffice-commits] core.git: stoc/source store/source svgio/inc

2020-03-13 Thread Noel Grandin (via logerrit)
 stoc/source/corereflection/base.hxx  |6 +++---
 stoc/source/corereflection/crcomp.cxx|2 +-
 stoc/source/implementationregistration/mergekeys.cxx |4 ++--
 stoc/source/inspect/introspection.cxx|2 +-
 stoc/source/invocation/invocation.cxx|2 +-
 stoc/source/invocation_adapterfactory/iafactory.cxx  |2 +-
 stoc/source/javavm/interact.hxx  |2 +-
 stoc/source/proxy_factory/proxyfac.cxx   |4 ++--
 stoc/source/security/file_policy.cxx |2 +-
 stoc/source/security/permissions.cxx |8 
 stoc/source/security/permissions.h   |2 +-
 stoc/source/servicemanager/servicemanager.cxx|2 +-
 stoc/source/uriproc/UriReference.hxx |   10 +-
 store/source/lockbyte.cxx|8 
 store/source/storcach.cxx|2 +-
 svgio/inc/svgcharacternode.hxx   |2 +-
 svgio/inc/svgnode.hxx|2 +-
 svgio/inc/svgpolynode.hxx|2 +-
 18 files changed, 32 insertions(+), 32 deletions(-)

New commits:
commit 2eb0e7594cc875dd0960822d9403b573ac00f739
Author: Noel Grandin 
AuthorDate: Fri Mar 13 09:59:10 2020 +0200
Commit: Noel Grandin 
CommitDate: Sat Mar 14 07:54:02 2020 +0100

Revert "loplugin:constfields in stoc..svgio"

This reverts commit 0ddf3e0a628599d01356cb5262b93faca073ee9f.

Change-Id: I3e476399a465950defc15ac4d6199a638c4a4baf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90452
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/stoc/source/corereflection/base.hxx 
b/stoc/source/corereflection/base.hxx
index 4f8be7282230..02742fdb660e 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -140,8 +140,8 @@ class IdlClassImpl
 rtl::Reference
  m_xReflection;
 
-OUString const   _aName;
-css::uno::TypeClass const_eTypeClass;
+OUString_aName;
+css::uno::TypeClass _eTypeClass;
 
 typelib_TypeDescription *   _pTypeDescr;
 
@@ -321,7 +321,7 @@ class IdlMemberImpl
 {
 rtl::Reference
 m_xReflection;
-OUString const  _aName;
+OUString_aName;
 
 typelib_TypeDescription *   _pTypeDescr;
 typelib_TypeDescription *   _pDeclTypeDescr;
diff --git a/stoc/source/corereflection/crcomp.cxx 
b/stoc/source/corereflection/crcomp.cxx
index a42ee6742f92..da4ad43b83e6 100644
--- a/stoc/source/corereflection/crcomp.cxx
+++ b/stoc/source/corereflection/crcomp.cxx
@@ -40,7 +40,7 @@ class IdlCompFieldImpl
 , public XIdlField
 , public XIdlField2
 {
-sal_Int32 const _nOffset;
+sal_Int32   _nOffset;
 
 public:
 IdlCompFieldImpl( IdlReflectionServiceImpl * pReflection, const OUString & 
rName,
diff --git a/stoc/source/implementationregistration/mergekeys.cxx 
b/stoc/source/implementationregistration/mergekeys.cxx
index 1a8f8fcce8c4..da7da509ebce 100644
--- a/stoc/source/implementationregistration/mergekeys.cxx
+++ b/stoc/source/implementationregistration/mergekeys.cxx
@@ -37,8 +37,8 @@ namespace {
 
 struct Link
 {
-OUString const m_name;
-OUString const m_target;
+OUString m_name;
+OUString m_target;
 
 Link( OUString const & name, OUString const & target )
 : m_name( name )
diff --git a/stoc/source/inspect/introspection.cxx 
b/stoc/source/inspect/introspection.cxx
index 14ecf79af050..9317a5c35493 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -643,7 +643,7 @@ class ImplIntrospectionAccess : public 
IntrospectionAccessHelper
 friend class Implementation;
 
 // Object under examination
-Any const maInspectedObject;
+Any maInspectedObject;
 
 // As interface
 Reference mxIface;
diff --git a/stoc/source/invocation/invocation.cxx 
b/stoc/source/invocation/invocation.cxx
index 9343e0865e22..8027442aa9b2 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -212,7 +212,7 @@ private:
 
 Reference   _xENDirect, _xENIntrospection;
 
-bool const  mbFromOLE;
+boolmbFromOLE;
 };
 
 }
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx 
b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 060170fe420f..e6a66cf8d126 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -132,7 +132,7 @@ struct AdapterImpl
 {
 oslInterlockedCount m_nRef;
 FactoryImpl *   m_pFactory;
-void * constm_key; // map key
+void *  m_key; // 

[Libreoffice-commits] core.git: stoc/source store/source svgio/inc

2018-10-08 Thread Libreoffice Gerrit user
 stoc/source/corereflection/base.hxx  |6 
 stoc/source/corereflection/crcomp.cxx|2 
 stoc/source/implementationregistration/implreg.cxx   |  127 +++
 stoc/source/implementationregistration/mergekeys.cxx |4 
 stoc/source/inspect/introspection.cxx|2 
 stoc/source/invocation/invocation.cxx|2 
 stoc/source/invocation_adapterfactory/iafactory.cxx  |2 
 stoc/source/javavm/interact.hxx  |2 
 stoc/source/proxy_factory/proxyfac.cxx   |4 
 stoc/source/security/file_policy.cxx |2 
 stoc/source/security/permissions.cxx |8 -
 stoc/source/security/permissions.h   |2 
 stoc/source/servicemanager/servicemanager.cxx|2 
 stoc/source/uriproc/UriReference.hxx |   12 -
 store/source/lockbyte.cxx|8 -
 store/source/storcach.cxx|2 
 svgio/inc/svgcharacternode.hxx   |2 
 svgio/inc/svgnode.hxx|2 
 svgio/inc/svgpolynode.hxx|2 
 19 files changed, 86 insertions(+), 107 deletions(-)

New commits:
commit 0ddf3e0a628599d01356cb5262b93faca073ee9f
Author: Noel Grandin 
AuthorDate: Mon Oct 8 09:09:08 2018 +0200
Commit: Noel Grandin 
CommitDate: Mon Oct 8 11:09:03 2018 +0200

loplugin:constfields in stoc..svgio

Change-Id: Icfd936fe9b83e0e122af5b09f7ed6dde2ead4400
Reviewed-on: https://gerrit.libreoffice.org/61512
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/stoc/source/corereflection/base.hxx 
b/stoc/source/corereflection/base.hxx
index 7c02a09edaf0..23c68aa83583 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -144,8 +144,8 @@ class IdlClassImpl
 rtl::Reference
  m_xReflection;
 
-OUString_aName;
-css::uno::TypeClass _eTypeClass;
+OUString const   _aName;
+css::uno::TypeClass const_eTypeClass;
 
 typelib_TypeDescription *   _pTypeDescr;
 
@@ -325,7 +325,7 @@ class IdlMemberImpl
 {
 rtl::Reference
 m_xReflection;
-OUString_aName;
+OUString const  _aName;
 
 typelib_TypeDescription *   _pTypeDescr;
 typelib_TypeDescription *   _pDeclTypeDescr;
diff --git a/stoc/source/corereflection/crcomp.cxx 
b/stoc/source/corereflection/crcomp.cxx
index acfcf765bb2e..26e0c8ecf8ad 100644
--- a/stoc/source/corereflection/crcomp.cxx
+++ b/stoc/source/corereflection/crcomp.cxx
@@ -39,7 +39,7 @@ class IdlCompFieldImpl
 , public XIdlField
 , public XIdlField2
 {
-sal_Int32   _nOffset;
+sal_Int32 const _nOffset;
 
 public:
 IdlCompFieldImpl( IdlReflectionServiceImpl * pReflection, const OUString & 
rName,
diff --git a/stoc/source/implementationregistration/implreg.cxx 
b/stoc/source/implementationregistration/implreg.cxx
index dd8997e5673b..f3c686f776c4 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -68,43 +68,28 @@ using namespace osl;
 
 namespace {
 
-struct StringPool
-{
-OUString slash_UNO_slash_REGISTRY_LINKS;
-OUString slash_IMPLEMENTATIONS;
-OUString slash_UNO;
-OUString slash_UNO_slash_SERVICES;
-OUString slash_UNO_slash_SINGLETONS;
-OUString slash_SERVICES;
-OUString slash_UNO_slash_LOCATION;
-OUString slash_UNO_slash_ACTIVATOR;
-OUString colon_old;
-OUString com_sun_star_registry_SimpleRegistry;
-OUString Registry;
-StringPool()
-: slash_UNO_slash_REGISTRY_LINKS( "/UNO/REGISTRY_LINKS")
-, slash_IMPLEMENTATIONS( "/IMPLEMENTATIONS" )
-, slash_UNO( "/UNO")
-, slash_UNO_slash_SERVICES( "/UNO/SERVICES")
-, slash_UNO_slash_SINGLETONS( "/UNO/SINGLETONS")
-, slash_SERVICES( "/SERVICES/" )
-, slash_UNO_slash_LOCATION( "/UNO/LOCATION" )
-, slash_UNO_slash_ACTIVATOR( "/UNO/ACTIVATOR" )
-, colon_old( ":old")
-, 
com_sun_star_registry_SimpleRegistry("com.sun.star.registry.SimpleRegistry" )
-, Registry( "Registry" )
-{}
-StringPool(const StringPool&) = delete;
-StringPool& operator=(const StringPool&) = delete;
-};
-
-const StringPool &spool()
-{
-static StringPool s_pool;
-
-return s_pool;
-}
-
+static constexpr OUStringLiteral slash_UNO_slash_REGISTRY_LINKS
+= "/UNO/REGISTRY_LINKS";
+static constexpr OUStringLiteral slash_IMPLEMENTATIONS
+=  "/IMPLEMENTATIONS";
+static constexpr OUStringLiteral slash_UNO
+= "/UNO";
+static constexpr OUStringLiteral slash_UNO_slash_SERVICES
+= "/UNO/SERVICES";
+static constexpr OUStringLiteral slash_UNO_slash_SINGLETONS
+= "/UNO/SINGLETONS";
+static constexpr OU

[Libreoffice-commits] core.git: stoc/source store/source svgio/inc svgio/source svl/source svtools/source svx/inc svx/source test/source testtools/source toolkit/source tools/source unotest/source uui

2016-04-13 Thread Jochen Nitschke
 stoc/source/implementationregistration/implreg.cxx |5 +-
 stoc/source/javavm/interact.cxx|   11 +++--
 stoc/source/javavm/javavm.cxx  |   12 
--
 stoc/source/uriproc/ExternalUriReferenceTranslator.cxx |7 ++-
 stoc/source/uriproc/UriReferenceFactory.cxx|   13 
--
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx  |   13 
--
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx  |   13 
--
 stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx   |7 ++-
 store/source/lockbyte.cxx  |   19 
++
 store/source/storbase.cxx  |7 ++-
 store/source/storcach.cxx  |2 -
 store/source/storcach.hxx  |7 ++-
 svgio/inc/svgio/svgreader/svgdocument.hxx  |8 ++--
 svgio/inc/svgio/svgreader/svgnode.hxx  |5 +-
 svgio/source/svguno/xsvgparser.cxx |5 +-
 svl/source/config/asiancfg.cxx |6 ++-
 svl/source/items/aeitem.cxx|1 
 svl/source/misc/getstringresource.cxx  |6 ++-
 svl/source/misc/inethist.cxx   |5 +-
 svl/source/svdde/ddeimp.hxx|5 +-
 svtools/source/edit/textwindowpeer.cxx |6 ++-
 svtools/source/misc/svtaccessiblefactory.cxx   |5 +-
 svtools/source/table/mousefunction.hxx |6 +--
 svtools/source/uno/contextmenuhelper.cxx   |6 +--
 svtools/source/uno/unocontroltablemodel.hxx|1 
 svtools/source/uno/unogridcolumnfacade.cxx |4 +-
 svtools/source/uno/unogridcolumnfacade.hxx |5 +-
 svx/inc/AccessibleTableShape.hxx   |   11 +++--
 svx/source/accessibility/lookupcolorname.cxx   |5 +-
 svx/source/form/fmscriptingenv.cxx |5 +-
 svx/source/sdr/contact/viewcontactofunocontrol.cxx |1 
 svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx   |7 +--
 svx/source/sidebar/PanelFactory.cxx|7 +--
 svx/source/table/accessiblecell.hxx|   12 
++
 svx/source/tbxctrls/lboxctrl.cxx   |1 
 svx/source/xml/xmlgrhlp.cxx|9 +++-
 test/source/vclbootstrapprotector.cxx  |5 +-
 testtools/source/bridgetest/constructors.cxx   |6 +--
 testtools/source/bridgetest/currentcontextchecker.cxx  |7 ++-
 toolkit/source/awt/asynccallback.cxx   |6 +--
 toolkit/source/controls/unocontrol.cxx |5 +-
 toolkit/source/helper/accessibilityclient.cxx  |6 +--
 tools/source/generic/fract.cxx |7 ++-
 unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx |6 ++-
 unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx |6 ++-
 uui/source/interactionhandler.cxx  |7 ++-
 vbahelper/source/vbahelper/vbaapplicationbase.cxx  |6 ++-
 vcl/osx/DragSource.hxx |7 +--
 vcl/osx/DragSourceContext.hxx  |7 +--
 vcl/osx/DropTarget.hxx |7 +--
 vcl/osx/OSXTransferable.hxx|6 +--
 vcl/osx/clipboard.hxx  |6 +--
 writerperfect/source/common/WPXSvInputStream.cxx   |5 +-
 xmloff/inc/txtlists.hxx|5 +-
 xmloff/source/chart/SchXMLExport.cxx   |6 ++-
 xmloff/source/style/impastpl.hxx   |7 ++-
 xmloff/source/text/txtimp.cxx  |4 +-
 xmlsecurity/source/xmlsec/serialnumberadapter.cxx  |6 +--
 58 files changed, 214 insertions(+), 167 deletions(-)

New commits:
commit 97abbec95665b43a9a09e10a0fb31854cdbd5c0d
Author: Jochen Nitschke 
Date:   Wed Apr 13 10:11:37 2016 +0200

tdf#94306 replace boost::noncopyable in stoc to xmlsec..

Replace with C++11 delete copy-constructur
and copy-assignment.
Remove boost/noncopyable.hpp includes.
Add missing default ctors.

With this