From owner-svn-ports-head@FreeBSD.ORG Wed Aug 7 13:59:56 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E8E9A367; Wed, 7 Aug 2013 13:59:56 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D44B42DC9; Wed, 7 Aug 2013 13:59:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r77DxuDO032607; Wed, 7 Aug 2013 13:59:56 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r77Dxuaq032603; Wed, 7 Aug 2013 13:59:56 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201308071359.r77Dxuaq032603@svn.freebsd.org> From: Pietro Cerutti Date: Wed, 7 Aug 2013 13:59:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324353 - in head/editors/xmlcopyeditor: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 13:59:57 -0000 Author: gahr Date: Wed Aug 7 13:59:55 2013 New Revision: 324353 URL: http://svnweb.freebsd.org/changeset/ports/324353 Log: - Fix build with clang Added: head/editors/xmlcopyeditor/files/patch-src_housestyle.h (contents, props changed) head/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp (contents, props changed) head/editors/xmlcopyeditor/files/patch-src_xmlschemagenerator.cpp (contents, props changed) Modified: head/editors/xmlcopyeditor/Makefile Modified: head/editors/xmlcopyeditor/Makefile ============================================================================== --- head/editors/xmlcopyeditor/Makefile Wed Aug 7 13:20:32 2013 (r324352) +++ head/editors/xmlcopyeditor/Makefile Wed Aug 7 13:59:55 2013 (r324353) @@ -17,12 +17,7 @@ WX_COMPS= wx contrib WX_CONF_ARGS= absolute WX_UNICODE= yes USES= gettext -USE_DOS2UNIX= src/templates/DTD.dtd \ - src/templates/OpenLearn_document.xml \ - src/rng/docbookxi.rnc \ - src/rng/tei_all.rnc \ - src/rng/xhtml-strict.rng \ - src/rng/xhtml.rng +USE_DOS2UNIX= yes BUILD_DEPENDS+= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs LIB_DEPENDS= xerces-c.3:${PORTSDIR}/textproc/xerces-c3 \ Added: head/editors/xmlcopyeditor/files/patch-src_housestyle.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/xmlcopyeditor/files/patch-src_housestyle.h Wed Aug 7 13:59:55 2013 (r324353) @@ -0,0 +1,13 @@ +--- src/housestyle.h.orig 2013-08-07 15:30:44.000000000 +0200 ++++ src/housestyle.h 2013-08-07 15:31:08.000000000 +0200 +@@ -68,8 +68,9 @@ + filterDirectory, + filterFile, + pathSeparator, +- error, ++ error + #ifdef __WXMSW__ ++ , + aspellDataPath, + aspellDictPath + #endif Added: head/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp Wed Aug 7 13:59:55 2013 (r324353) @@ -0,0 +1,45 @@ +--- src/xmlcopyeditor.cpp.orig 2013-08-07 15:31:32.000000000 +0200 ++++ src/xmlcopyeditor.cpp 2013-08-07 15:35:13.000000000 +0200 +@@ -2887,7 +2887,7 @@ + + const int arraySize = templateArray.GetCount(); + +- wxString choiceArray[arraySize + 1]; ++ wxString *choiceArray = new wxString[arraySize + 1]; + for ( int i = 0; i < arraySize; ++i ) + * ( choiceArray + i ) = templateArray.Item ( i ); + +@@ -2901,6 +2901,7 @@ + return; + } + typeSelection = scd.GetStringSelection(); ++ delete [] choiceArray; + } + + if ( typeSelection == defaultSelection ) +@@ -4384,20 +4385,23 @@ + encodingVector.push_back ( _T ( "ISO-8859-1" ) ); + encodingVector.push_back ( _T ( "US-ASCII" ) ); + const int vectorSize = encodingVector.size(); +- wxString choiceArray[vectorSize + 1]; ++ wxString *choiceArray = new wxString[vectorSize + 1]; + for ( int i = 0; i < vectorSize; ++i ) + * ( choiceArray + i ) = encodingVector.at ( i ); + wxSingleChoiceDialog scd ( + this, _ ( "Choose an encoding:" ), _ ( "Encoding" ), vectorSize, choiceArray ); + +- if ( scd.ShowModal() == wxID_CANCEL ) ++ if ( scd.ShowModal() == wxID_CANCEL ) { ++ delete [] choiceArray; + return; ++ } + + wxString selection; + std::string selectionUtf8, bufferUtf8; + + selection = scd.GetStringSelection(); + selectionUtf8 = selection.mb_str ( wxConvUTF8 ); ++ delete [] choiceArray; + + getRawText ( doc, bufferUtf8 ); + XmlEncodingHandler::setUtf8 ( bufferUtf8, true ); Added: head/editors/xmlcopyeditor/files/patch-src_xmlschemagenerator.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/xmlcopyeditor/files/patch-src_xmlschemagenerator.cpp Wed Aug 7 13:59:55 2013 (r324353) @@ -0,0 +1,11 @@ +--- src/xmlschemagenerator.cpp.orig 2013-08-07 15:53:21.000000000 +0200 ++++ src/xmlschemagenerator.cpp 2013-08-07 15:54:00.000000000 +0200 +@@ -203,7 +203,7 @@ + continue; + for ( attrItr = attrMap.begin(); attrItr != attrMap.end(); attrItr++ ) + { +- const static wxMBConvUTF16 conv; ++ static wxMBConvUTF16 conv; + if ( attrs->getNamedItem ( ( const XMLCh * ) ( const char * ) + attrItr->first.mb_str ( conv ) ) == NULL ) + {