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

Stephan Bergmann sbergman at redhat.com
Mon Jul 17 15:20:11 UTC 2017


 dtrans/source/win32/dtobj/FmtFilter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7d82067d38663bc0a8ee1a12087a763bcb73d744
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 17 17:19:31 2017 +0200

    loplugin:unnecessaryparen: dtrans (clang-cl)
    
    Change-Id: Ie366a48242d04a888e34ae2c95230ef4de05fbbb

diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index 0a2f2446cd1e..711dd8a68364 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -283,7 +283,7 @@ Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
 std::wstring getFileExtension(const std::wstring& aFilename)
 {
     std::wstring::size_type idx = aFilename.rfind(L".");
-    if ((idx != std::wstring::npos))
+    if (idx != std::wstring::npos)
     {
         return std::wstring(aFilename, idx);
     }


More information about the Libreoffice-commits mailing list