From e132e781d8b01684d8ef51f060e90d465a21c677 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Feb 2019 13:01:42 +0200 Subject: loplugin:simplifybool extend to !(a == b) where comparison an overloaded op Change-Id: I08fcbe2569c07f5f97269ad861fa6d38f23a7cc7 Reviewed-on: https://gerrit.libreoffice.org/67816 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/core/dataaccess/documentdefinition.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index ad9cca9716ed..c69d42b2418f 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.cxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx @@ -1553,7 +1553,7 @@ void ODocumentDefinition::loadEmbeddedObject( const Reference< XConnection >& i_ sDocumentService = GetDocumentServiceFromMediaType( getContentType(), m_aContext, aClassID ); // check if we are not a form and // the org.libreoffice.report.pentaho.SOReportJobFactory is not present. - if ( !m_bForm && !(sDocumentService == "com.sun.star.text.TextDocument")) + if ( !m_bForm && sDocumentService != "com.sun.star.text.TextDocument") { // we seem to be a "new style" report, check if report extension is present. Reference< XContentEnumerationAccess > xEnumAccess( m_aContext->getServiceManager(), UNO_QUERY ); -- cgit