From b6979dc6f2a28cf73bcef614ddfd4457f8a087f4 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Sun, 2 Feb 2014 02:16:37 +0000 Subject: [PATCH] - Fix runtime core - Fix minor nit in tqsl.cpp with use of WxString Reported by: Thomas Laus --- comms/trustedqsl/Makefile | 7 ++--- comms/trustedqsl/files/patch-apps_tqsl.cpp | 13 ++++++-- comms/trustedqsl/files/patch-src_xml.cpp | 36 ++++++++++++++++++++++ comms/trustedqsl/files/patch-src_xml.h | 27 ++++++++++------ 4 files changed, 68 insertions(+), 15 deletions(-) create mode 100644 comms/trustedqsl/files/patch-src_xml.cpp diff --git a/comms/trustedqsl/Makefile b/comms/trustedqsl/Makefile index 460e56a088ce..d841111f764c 100644 --- a/comms/trustedqsl/Makefile +++ b/comms/trustedqsl/Makefile @@ -2,7 +2,7 @@ PORTNAME= trustedqsl PORTVERSION= 2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms hamradio MASTER_SITES= SF/${PORTNAME}/TrustedQSL/v${PORTVERSION}/ DISTNAME= tqsl-${PORTVERSION} @@ -16,11 +16,10 @@ LICENSE= BSD LIB_DEPENDS= libdb-5.so:${PORTSDIR}/databases/db5 \ libcurl.so:${PORTSDIR}/ftp/curl -CXXFLAGS +=-std=gnu++0x - PKGMESSAGE= ${WRKDIR}/pkg-message -USES= compiler:c++11-lib cmake pkgconfig +USES= cmake pkgconfig +USES= compiler:features cmake pkgconfig USE_WX= 2.8+ WX_UNICODE= yes USE_LDCONFIG= yes diff --git a/comms/trustedqsl/files/patch-apps_tqsl.cpp b/comms/trustedqsl/files/patch-apps_tqsl.cpp index 5b6a26e9e6e4..9843d5cd868b 100644 --- a/comms/trustedqsl/files/patch-apps_tqsl.cpp +++ b/comms/trustedqsl/files/patch-apps_tqsl.cpp @@ -1,5 +1,5 @@ ---- apps/tqsl.cpp.orig 2013-12-12 15:52:46.737002435 -0500 -+++ apps/tqsl.cpp 2013-12-12 15:52:12.740004212 -0500 +--- apps/tqsl.cpp.orig 2013-10-20 20:33:20.000000000 -0400 ++++ apps/tqsl.cpp 2014-01-26 10:20:28.036914222 -0500 @@ -71,7 +71,7 @@ #endif #include @@ -9,6 +9,15 @@ #include "tqslwiz.h" #include "qsodatadialog.h" #include "tqslerrno.h" +@@ -1862,7 +1862,7 @@ + return TQSL_EXIT_LIB_ERROR; + } + } else { +- out<second.getElementName() != _iterName) ++ return false; ++ element = _iter->second; ++ ++_iter; ++ return true; ++} + + pair + XMLElement::getAttribute(const string& key) { diff --git a/comms/trustedqsl/files/patch-src_xml.h b/comms/trustedqsl/files/patch-src_xml.h index d0351a94bb16..9bb731ff2a89 100644 --- a/comms/trustedqsl/files/patch-src_xml.h +++ b/comms/trustedqsl/files/patch-src_xml.h @@ -1,6 +1,6 @@ ---- src/xml.h.orig 2013-12-12 13:03:46.814700681 -0500 -+++ src/xml.h 2013-12-12 13:04:09.019718129 -0500 -@@ -108,12 +108,13 @@ +--- src/xml.h.orig 2013-10-20 20:33:20.000000000 -0400 ++++ src/xml.h 2014-02-01 20:20:55.798824124 -0500 +@@ -108,7 +108,6 @@ XMLElementAttributeList _attributes; XMLElementList _elements; std::vector _parsingStack; @@ -8,10 +8,19 @@ bool _iterByName; std::string _iterName; XMLElementAttributeList::iterator _aiter; - }; +@@ -132,6 +131,7 @@ + return it; + } -+static XMLElementList::iterator _iter; -+ - inline void XMLElement::clear() { - _name = _text = _pretext = _iterName = ""; - _attributes.clear(); ++#if 0 + inline bool + XMLElement::getFirstElement(XMLElement& element) { + _iterByName = false; +@@ -157,6 +157,7 @@ + ++_iter; + return true; + } ++#endif + + inline bool + XMLElement::getFirstAttribute(std::string& key, std::string& attr) {