Chromium Code Reviews| Index: include/core/SkString.h |
| =================================================================== |
| --- include/core/SkString.h (revision 7872) |
| +++ include/core/SkString.h (working copy) |
| @@ -244,4 +244,8 @@ |
| /// Creates a new string and writes into it using a printf()-style format. |
| SkString SkStringPrintf(const char* format, ...); |
| +template <> inline void SkTSwap(SkString& a, SkString& b) { |
|
reed1
2013/02/26 23:05:44
// Specialize SkTSwap (SkTypes.h) for SkString, so
bsalomon
2013/02/27 16:56:36
Done.
|
| + a.swap(b); |
| +} |
| + |
| #endif |