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

Julien Nabet serval2412 at yahoo.fr
Mon Apr 3 19:19:42 UTC 2017


 editeng/source/editeng/eehtml.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit df039e89c5d2f8f3ccfaa0001885f3e532537fb6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Apr 1 18:48:32 2017 +0200

    Remove DBG_ASSERT since it's always wrong
    
    Indeed EditHTMLParser constructor calls HTMLParser constructor,
    the last one calls "SetSrcEncoding(RTL_TEXTENCODING_UTF8);"
    
    Change-Id: If749674c3d4f2b9f9fccbf0b99f1e7d62fd0450d
    Reviewed-on: https://gerrit.libreoffice.org/36011
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/editeng/source/editeng/eehtml.cxx b/editeng/source/editeng/eehtml.cxx
index 1d8c87c59598..06db8143e594 100644
--- a/editeng/source/editeng/eehtml.cxx
+++ b/editeng/source/editeng/eehtml.cxx
@@ -51,7 +51,6 @@ EditHTMLParser::EditHTMLParser( SvStream& rIn, const OUString& rBaseURL, SvKeyVa
     nInCell(0),
     nDefListLevel(0)
 {
-    DBG_ASSERT( RTL_TEXTENCODING_DONTKNOW == GetSrcEncoding( ), "EditHTMLParser::EditHTMLParser: Where does the encoding come from?" );
     DBG_ASSERT( !IsSwitchToUCS2(), "EditHTMLParser::::EditHTMLParser: Switch to UCS2?" );
 
     // Although the real default encoding is ISO8859-1, we use MS-1252


More information about the Libreoffice-commits mailing list