From 5d11a56f298af0157ef12b051d2927186a809859 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 31 Aug 2015 17:17:24 +0100 Subject: Improve misc.h compatibility by having the macro call .str() to maintain std::string return type --- libadhocutil/buffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libadhocutil/buffer.h b/libadhocutil/buffer.h index 602d010..fa1b815 100644 --- a/libadhocutil/buffer.h +++ b/libadhocutil/buffer.h @@ -117,9 +117,9 @@ class DLL_PUBLIC Buffer : public virtual IntrusivePtrBase { }; // libmisc compat macros -#define vstringf Buffer().vappendf -#define stringf Buffer().appendf -#define stringbf Buffer().appendbf +#define vstringf(...) Buffer().vappendf(__VA_ARGS__).str() +#define stringf(...) Buffer().appendf(__VA_ARGS__).str() +#define stringbf(...) Buffer().appendbf(__VA_ARGS__).str() #endif -- cgit v1.2.3