diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkString.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkString.h b/include/core/SkString.h index b96efe730b..3d2373758d 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h @@ -272,6 +272,9 @@ private: /// Creates a new string and writes into it using a printf()-style format. SkString SkStringPrintf(const char* format, ...); +/// This makes it easier to write a caller as a VAR_ARGS function where the format string is +/// optional. +static inline SkString SkStringPrintf() { return SkString(); } // Specialized to take advantage of SkString's fast swap path. The unspecialized function is // declared in SkTypes.h and called by SkTSort. |