head 1.2; access; symbols pkgsrc-2014Q4:1.1.0.18 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.16 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.14 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.12 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.10 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.8 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.6 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.4 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.2 pkgsrc-2012Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2015.02.03.13.55.12; author adam; state dead; branches; next 1.1; commitid M8b2igoS0yKjfz8y; 1.1 date 2012.11.16.00.54.04; author joerg; state Exp; branches; next ; desc @@ 1.2 log @Changes 0.91: Cairo rendering for display and PNG export OpenMP multithreading for all filters C++ code conversion Major improvements in the Text tool Measure tool Type design features Symbol library and support for Visio stencils Cross platform WMF and EMF import and export Improved support for Corel DRAW documents, Visio importer Support for real world document and page size units, e.g. millimeters Numerous usability improvements Native Windows 64-bit build @ text @$NetBSD: patch-src_dom_io_domstream.cpp,v 1.1 2012/11/16 00:54:04 joerg Exp $ --- src/dom/io/domstream.cpp.orig 2012-11-15 18:28:52.000000000 +0000 +++ src/dom/io/domstream.cpp @@@@ -35,6 +35,7 @@@@ */ #include +#include #include #include @@@@ -285,12 +286,11 @@@@ static int getint(const DOMString &buf, -static int dprintf(Writer &outs, const DOMString &fmt, va_list ap) +static int dprintf(Writer &outs, const char *fmt, va_list ap) { + size_t len = strlen(fmt); - int len = fmt.size(); - - for (int pos=0 ; pos < len ; pos++) + for (size_t pos = 0 ; pos < len ; pos++) { XMLCh ch = fmt[pos]; @@@@ -909,7 +909,7 @@@@ Writer &BasicWriter::printf(char const * return *this; } */ -Writer &BasicWriter::printf(const DOMString &fmt, ...) +Writer &BasicWriter::printf(const char *fmt, ...) { va_list args; va_start(args, fmt); @ 1.1 log @Fix template look up. Don't use variable length arrays of non-POD types. Don't pass non-POD types to variadic functions. @ text @d1 1 a1 1 $NetBSD$ @