aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkString.cpp')
-rw-r--r--src/core/SkString.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp
index 23c85f993e..65dae1b753 100644
--- a/src/core/SkString.cpp
+++ b/src/core/SkString.cpp
@@ -12,9 +12,11 @@
#include "SkTo.h"
#include "SkUtils.h"
+#include <cstdarg>
#include <cstdio>
#include <new>
-#include <stdarg.h>
+#include <utility>
+
// number of bytes (on the stack) to receive the printf result
static const size_t kBufferSize = 1024;
@@ -574,7 +576,8 @@ void SkString::swap(SkString& other) {
this->validate();
other.validate();
- SkTSwap(fRec, other.fRec);
+ using std::swap;
+ swap(fRec, other.fRec);
}
///////////////////////////////////////////////////////////////////////////////