From 42beddd44b59bba8accd2a9999663bf00ca57367 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Nov 2017 15:03:32 +0100 Subject: [PATCH] loplugin:simplifybool (clang-cl) Change-Id: Id86ddcbed61df87f8da7a58972387d950d14634d Reviewed-on: https://gerrit.libreoffice.org/45339 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- dtrans/source/win32/dtobj/FmtFilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx index dd39d7956d15..0a284290b51b 100644 --- a/dtrans/source/win32/dtobj/FmtFilter.cxx +++ b/dtrans/source/win32/dtobj/FmtFilter.cxx @@ -247,7 +247,7 @@ Sequence SAL_CALL TextHtmlToHTMLFormat(Sequence const & aTex { OSL_ASSERT(aTextHtml.getLength() > 0); - if (!(aTextHtml.getLength() > 0)) + if (aTextHtml.getLength() <= 0) return Sequence(); // fill the buffer with dummy values to calc the exact length