[Libreoffice-commits] core.git: xmlsecurity/source

2020-02-03 Thread iakarsu (via logerrit)
 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx |   10 
+++---
 1 file changed, 3 insertions(+), 7 deletions(-)

New commits:
commit fbebfdaa83efa94cbb0b39d6c2e2dc62488ae1ac
Author: iakarsu 
AuthorDate: Mon Jan 27 11:50:19 2020 +0300
Commit: Stephan Bergmann 
CommitDate: Mon Feb 3 15:40:05 2020 +0100

tdf:#54938Adapt supportsService implementations to cppu::supportsService

Change-Id: I9e2dbdfb8bbf5be4a74b1b581e742b3193b3756b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87496
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git 
a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx 
b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
index 4aefafa30a32..9d5b4df3e845 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
@@ -26,6 +26,8 @@
 
 #include 
 
+#include 
+
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::lang ;
 using ::com::sun::star::lang::XMultiServiceFactory ;
@@ -135,13 +137,7 @@ OUString SAL_CALL 
XMLSecurityContext_MSCryptImpl::getImplementationName() {
 
 /* XServiceInfo */
 sal_Bool SAL_CALL XMLSecurityContext_MSCryptImpl::supportsService( const 
OUString& serviceName) {
-uno::Sequence< OUString > seqServiceNames = getSupportedServiceNames() ;
-const OUString* pArray = seqServiceNames.getConstArray() ;
-for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) {
-if( *( pArray + i ) == serviceName )
-return true ;
-}
-return false ;
+return cppu::supportsService(this, serviceName);
 }
 
 /* XServiceInfo */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/basegfx

2020-02-03 Thread iakarsu (via logerrit)
 include/basegfx/range/basicrange.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 446af1fd2b76dfe32a3f947b683a4e36122cea37
Author: iakarsu 
AuthorDate: Tue Jan 28 15:39:57 2020 +0300
Commit: Stephan Bergmann 
CommitDate: Mon Feb 3 14:23:35 2020 +0100

tdf#96505: Get rid of cargo cult long integer literals

Change-Id: I3917e5152036f77eb419fe658937562f5928ceff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87614
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/include/basegfx/range/basicrange.hxx 
b/include/basegfx/range/basicrange.hxx
index 17f31ea42f19..046dfafdd03f 100644
--- a/include/basegfx/range/basicrange.hxx
+++ b/include/basegfx/range/basicrange.hxx
@@ -297,7 +297,7 @@ namespace basegfx
 {
 static sal_Int32 minVal() { return SAL_MIN_INT32; };
 static sal_Int32 maxVal() { return SAL_MAX_INT32; };
-static sal_Int32 neutral() { return 0L; };
+static sal_Int32 neutral() { return 0; };
 
 typedef sal_Int64 DifferenceType;
 };
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: shell/source

2020-01-28 Thread iakarsu (via logerrit)
 shell/source/backends/desktopbe/desktopbackend.cxx |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f29cd4d26921ac22cecdee1d52fce7b3a1672efa
Author: iakarsu 
AuthorDate: Mon Jan 27 14:15:15 2020 +0300
Commit: Muhammet Kara 
CommitDate: Tue Jan 28 14:44:30 2020 +0100

tdf#88205: - Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: If0fe2feb6b6b4aa595f69c1a1448a809438ec077
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87508
Tested-by: Jenkins
Reviewed-by: Muhammet Kara 

diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx 
b/shell/source/backends/desktopbe/desktopbackend.cxx
index 03fe834506b9..001adefd2e4d 100644
--- a/shell/source/backends/desktopbe/desktopbackend.cxx
+++ b/shell/source/backends/desktopbe/desktopbackend.cxx
@@ -63,9 +63,7 @@ OUString getDefaultImplementationName() {
 }
 
 css::uno::Sequence< OUString > getDefaultSupportedServiceNames() {
-OUString name(
-"com.sun.star.configuration.backend.DesktopBackend");
-return css::uno::Sequence< OUString >(, 1);
+return { "com.sun.star.configuration.backend.DesktopBackend" };
 }
 
 class Default:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sfx2/source

2020-01-27 Thread iakarsu (via logerrit)
 sfx2/source/bastyp/progress.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2d089b2adc1fc67a7621c3078b6b37c5e997789c
Author: iakarsu 
AuthorDate: Sun Jan 26 17:10:55 2020 +0300
Commit: Stephan Bergmann 
CommitDate: Mon Jan 27 10:49:32 2020 +0100

tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types

Change-Id: Icbe4628442ec74c6dd16f42a670f42b75aefc346
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87479
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index d7603926bc0b..6d73d8316c01 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -46,7 +46,7 @@ struct SfxProgress_Impl
 {
 Reference < XStatusIndicator > xStatusInd;
 OUStringaText;
-sal_uIntPtr nMax;
+sal_uInt32  nMax;
 clock_t nCreate;
 boolbWaitMode;
 boolbRunning;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/LibreOfficeKit include/registry include/rtl include/sfx2 include/svx

2020-01-26 Thread iakarsu (via logerrit)
 include/LibreOfficeKit/LibreOfficeKit.hxx |5 +
 include/registry/registry.hxx |6 +-
 include/rtl/strbuf.hxx|6 +-
 include/sfx2/sfxbasemodel.hxx |5 +
 include/svx/msdffdef.hxx  |5 +
 5 files changed, 5 insertions(+), 22 deletions(-)

New commits:
commit 9accb3c4b5e1861d9a03c655242da5b629f5a6d6
Author: iakarsu 
AuthorDate: Sat Jan 25 16:21:43 2020 +0300
Commit: Muhammet Kara 
CommitDate: Sun Jan 26 20:27:42 2020 +0100

tdf#124176: Use pragma once instead of include guards

Change-Id: I6a7f7711fa931657dd97c9c0bc1bdce671b69b7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87405
Tested-by: Jenkins
Reviewed-by: Muhammet Kara 

diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx 
b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 19f0b2663552..28a603e02203 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -7,8 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKIT_HXX
-#define INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKIT_HXX
+#pragma once
 
 #include 
 
@@ -972,6 +971,4 @@ inline Office* lok_cpp_init(const char* pInstallPath, const 
char* pUserProfileUr
 
 }
 
-#endif // INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKIT_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx
index 9e264f4a30bd..c71e7dc804c4 100644
--- a/include/registry/registry.hxx
+++ b/include/registry/registry.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_REGISTRY_REGISTRY_HXX
-#define INCLUDED_REGISTRY_REGISTRY_HXX
+#pragma once
 
 #include 
 #include 
@@ -1055,7 +1054,4 @@ inline RegError Registry::mergeKey(RegistryKey& rKey,
  bool bReport)
 {  return m_pApi->mergeKey(m_hImpl, rKey.m_hImpl, keyName.pData, 
regFileName.pData, false/*bWarnings*/, bReport); }
 
-
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 3be06a31e120..780f00dddbb5 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_RTL_STRBUF_HXX
-#define INCLUDED_RTL_STRBUF_HXX
+#pragma once
 
 #include "sal/config.h"
 
@@ -1068,7 +1067,4 @@ typedef rtlunittest::OStringBuffer OStringBuffer;
 using ::rtl::OStringBuffer;
 #endif
 
-#endif // INCLUDED_RTL_STRBUF_HXX
-
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/sfx2/sfxbasemodel.hxx b/include/sfx2/sfxbasemodel.hxx
index 7d3be53fd515..3dbdb80c3aff 100644
--- a/include/sfx2/sfxbasemodel.hxx
+++ b/include/sfx2/sfxbasemodel.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SFX2_SFXBASEMODEL_HXX
-#define INCLUDED_SFX2_SFXBASEMODEL_HXX
+#pragma once
 
 #include 
 #include 
@@ -745,6 +744,4 @@ private:
 
 } ; // class SfxBaseModel
 
-#endif // INCLUDED_SFX2_SFXBASEMODEL_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/msdffdef.hxx b/include/svx/msdffdef.hxx
index b722e95be8b3..373974e67b31 100644
--- a/include/svx/msdffdef.hxx
+++ b/include/svx/msdffdef.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SVX_MSDFFDEF_HXX
-#define INCLUDED_SVX_MSDFFDEF_HXX
+#pragma once
 
 #include 
 #include 
@@ -856,6 +855,4 @@ enum MSO_TextGeometryProperties {
 //ALT_TXT_MSINTEROP
 #define MSPROP_DESCRIPTION_MAX_LEN  4096
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sal/textenc

2020-01-25 Thread iakarsu (via logerrit)
 sal/textenc/context.hxx |6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit a43fe4e5c73c44a68fc32b16c1c8db4f3e216f4e
Author: iakarsu 
AuthorDate: Sat Jan 25 14:59:01 2020 +0300
Commit: Muhammet Kara 
CommitDate: Sat Jan 25 17:47:15 2020 +0100

tdf#124176: Use pragma once instead of include guards

Change-Id: Ibf31d5b97017f875e62b609beef0ecdebd559502
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87391
Tested-by: Jenkins
Reviewed-by: Muhammet Kara 

diff --git a/sal/textenc/context.hxx b/sal/textenc/context.hxx
index 7c6d96b7eff9..e887bab53ccc 100644
--- a/sal/textenc/context.hxx
+++ b/sal/textenc/context.hxx
@@ -17,9 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_TEXTENC_CONTEXT_HXX
-#define INCLUDED_SAL_TEXTENC_CONTEXT_HXX
-
+#pragma once
 
 #include 
 
@@ -34,6 +32,4 @@ void ImplResetUnicodeToTextContext(void * pContext);
 
 void ImplDestroyUnicodeToTextContext(void * pContext);
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits