Skip to content

Commit

Permalink
COMMON: Rename String::printf to format to match ScummVM
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp authored and criezy committed Dec 16, 2017
1 parent d5c1cd0 commit ad0806d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/str.cpp
Expand Up @@ -433,7 +433,7 @@ uint String::hash() const {
}

// static
String String::printf(const char *fmt, ...) {
String String::format(const char *fmt, ...) {
String output;
assert(output.isStorageIntern());

Expand Down
2 changes: 1 addition & 1 deletion common/str.h
Expand Up @@ -218,7 +218,7 @@ class String {
/**
* Printf-like function. Returns a formatted String.
*/
static Common::String printf(const char *fmt, ...) GCC_PRINTF(1,2);
static Common::String format(const char *fmt, ...) GCC_PRINTF(1,2);

public:
typedef char * iterator;
Expand Down

0 comments on commit ad0806d

Please sign in to comment.