[PATCH] cppcheck: Invalid Character errors fix

Andy Holder andy.m.holder at gmail.com
Thu Dec 23 09:31:49 PST 2010


There are a number of "Invalid number of character ({) when these
macros are defined" error from cppcheck, I think these are
caused by the start of a namespace
declaration being inside a #if without it's closing }.
---
 binfilter/bf_sw/source/core/text/sw_porlay.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/binfilter/bf_sw/source/core/text/sw_porlay.cxx b/binfilter/bf_sw/source/core/text/sw_porlay.cxx
index b0e8d3b..3ae98df 100644
--- a/binfilter/bf_sw/source/core/text/sw_porlay.cxx
+++ b/binfilter/bf_sw/source/core/text/sw_porlay.cxx
@@ -56,6 +56,7 @@ using namespace ::com::sun::star::i18n::ScriptType;
 
 #ifdef BIDI
 #include <unicode/ubidi.h>
+#endif
 namespace binfilter {
 
 /*************************************************************************
@@ -72,7 +73,6 @@ namespace binfilter {
  *************************************************************************/
 
 
-#endif
 
 
 /*************************************************************************
-- 
1.7.3.4


--MP_/wMB/6l_HA_jMnOsQb_SowNn--


More information about the LibreOffice mailing list