From 30e60192e820e0b123816fdb3be24880972b6e83 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 12 Jan 2012 15:18:27 -0600 Subject: [PATCH] Update tqt3 from qt3 --- src/tools/qcstring.h | 6 +++++- tools/linguist/shared/proparser.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tools/qcstring.h b/src/tools/qcstring.h index a396f64b..96eb9f80 100644 --- a/src/tools/qcstring.h +++ b/src/tools/qcstring.h @@ -164,7 +164,11 @@ public: TQCString copy() const; - TQCString &sprintf( const char *format, ... ); + TQCString &sprintf( const char *format, ... ) +#if defined(Q_CC_GNU) && !defined(__INSURE__) + __attribute__ ((format (printf, 2, 3))) +#endif + ; int find( char c, int index=0, bool cs=TRUE ) const; int find( const char *str, int index=0, bool cs=TRUE ) const; diff --git a/tools/linguist/shared/proparser.cpp b/tools/linguist/shared/proparser.cpp index ec75b1d3..6095d48d 100644 --- a/tools/linguist/shared/proparser.cpp +++ b/tools/linguist/shared/proparser.cpp @@ -207,6 +207,7 @@ TQMap proFileTagMap( const TQString& text ) buff[read_in] = '\0'; after += buff; } + pclose( proc ); (*it).replace( i, callToSystem.matchedLength(), after ); i += after.length(); }