[Libreoffice-commits] core.git: dtrans/source sal/osl

Stephan Bergmann sbergman at redhat.com
Tue Aug 22 06:41:16 UTC 2017


 dtrans/source/win32/dtobj/DataFmtTransl.cxx |    2 +-
 sal/osl/w32/interlck.cxx                    |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 186eda28fccccfbcd9ed918b2cf7f3d7bd294575
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Aug 22 08:38:48 2017 +0200

    loplugin:unnecessaryparen (clang-cl)
    
    Change-Id: I61b006051e708636f0bba83b16de36f4571b8da7

diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.cxx b/dtrans/source/win32/dtobj/DataFmtTransl.cxx
index a498e9d4471e..c35cc42f43a6 100644
--- a/dtrans/source/win32/dtobj/DataFmtTransl.cxx
+++ b/dtrans/source/win32/dtobj/DataFmtTransl.cxx
@@ -231,7 +231,7 @@ bool SAL_CALL CDataFormatTranslator::isHTMLFormat( CLIPFORMAT cf )
 bool SAL_CALL CDataFormatTranslator::isTextHtmlFormat( CLIPFORMAT cf )
 {
     OUString clipFormatName = getClipboardFormatName( cf );
-    return ( clipFormatName.equalsIgnoreAsciiCase( HTML_FORMAT_NAME_SOFFICE ) );
+    return clipFormatName.equalsIgnoreAsciiCase( HTML_FORMAT_NAME_SOFFICE );
 }
 
 OUString SAL_CALL CDataFormatTranslator::getTextCharsetFromLCID( LCID lcid, CLIPFORMAT aClipformat )
diff --git a/sal/osl/w32/interlck.cxx b/sal/osl/w32/interlck.cxx
index 3866062d75c2..b9ecf6d78eef 100644
--- a/sal/osl/w32/interlck.cxx
+++ b/sal/osl/w32/interlck.cxx
@@ -23,12 +23,12 @@
 
 oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount)
 {
-    return (InterlockedIncrement(pCount));
+    return InterlockedIncrement(pCount);
 }
 
 oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* pCount)
 {
-    return (InterlockedDecrement(pCount));
+    return InterlockedDecrement(pCount);
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list