BString::SetToFormat(): Add printf format function attribute

This commit is contained in:
Ingo Weinhold
2013-09-11 04:43:05 +02:00
parent 38c62dfb8b
commit 406ad5bece
+2 -1
View File
@@ -55,7 +55,8 @@ public:
BString& SetToChars(const BString& string, int32 charCount);
BString& AdoptChars(BString& from, int32 charCount);
BString& SetToFormat(const char* format, ...);
BString& SetToFormat(const char* format, ...)
__attribute__((__format__(__printf__, 2, 3)));
BString& SetToFormatVarArgs(const char* format,
va_list args);