]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/markupparser.cpp
removing unnecessary - and incorrect - override, fixes #14319
[wxWidgets.git] / src / common / markupparser.cpp
index 8320e35eca8f2784dcbaf4bc710934aebd52dbf2..cb87983b0e72f86b0d0f1bdfee96fc27da963b7b 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     Implementation of wxMarkupParser.
 // Author:      Vadim Zeitlin
 // Created:     2011-02-16
-// RCS-ID:      $Id$
+// RCS-ID:      $Id$
 // Copyright:   (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
     #pragma hdrstop
 #endif
 
+#if wxUSE_MARKUP
+
 #ifndef WX_PRECOMP
-#endif // WX_PRECOMP
+    #include "wx/log.h"
+#endif
 
 #include "wx/private/markupparser.h"
 
@@ -276,11 +279,11 @@ bool wxMarkupParser::Parse(const wxString& text)
                         m_output.OnText(current);
                         current.clear();
                     }
-
+#if wxUSE_LOG_DEBUG
                     // Remember the tag starting position for the error
                     // messages.
                     const size_t pos = it - text.begin();
-
+#endif
                     bool start = true;
                     if ( ++it != end && *it == '/' )
                     {
@@ -473,3 +476,5 @@ wxString wxMarkupParser::Strip(const wxString& text)
 
     return output.GetText();
 }
+
+#endif // wxUSE_MARKUP