Fix VC++ ptr-to-... and va_list confusion
R=bungeman@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/78903006 git-svn-id: http://skia.googlecode.com/svn/trunk@12346 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e898e9c65e
commit
ce0e4efabd
@ -196,7 +196,7 @@ public:
|
||||
|
||||
void printf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
|
||||
void appendf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
|
||||
void appendf(const char format[], va_list);
|
||||
void appendVAList(const char format[], va_list);
|
||||
void prependf(const char format[], ...) SK_PRINTF_LIKE(2, 3);
|
||||
|
||||
void remove(size_t offset, size_t length);
|
||||
|
@ -569,7 +569,7 @@ void SkString::appendf(const char format[], ...) {
|
||||
this->append(buffer, strlen(buffer));
|
||||
}
|
||||
|
||||
void SkString::appendf(const char format[], va_list args) {
|
||||
void SkString::appendVAList(const char format[], va_list args) {
|
||||
char buffer[kBufferSize];
|
||||
VSNPRINTF(buffer, kBufferSize, format, args);
|
||||
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
void fsCodeAppendf(const char format[], ...) SK_PRINTF_LIKE(2, 3) {
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
fFSCode.appendf(format, args);
|
||||
fFSCode.appendVAList(format, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
@ -356,7 +356,7 @@ public:
|
||||
void vsCodeAppendf(const char format[], ...) SK_PRINTF_LIKE(2, 3) {
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
fVSCode.appendf(format, args);
|
||||
fVSCode.appendVAList(format, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user