diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 17:29:27 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 17:29:27 +0000 |
commit | 40350b13714bed9c76d8bb0991c490b2ee14fe05 (patch) | |
tree | ab2c88b3f9f5ba6e179a4547fb6b47bd3a768e95 /third_party/libjingle | |
parent | 3450c47c2b62b3db03c3d3a873252072baecd40c (diff) | |
download | chromium_src-40350b13714bed9c76d8bb0991c490b2ee14fe05.zip chromium_src-40350b13714bed9c76d8bb0991c490b2ee14fe05.tar.gz chromium_src-40350b13714bed9c76d8bb0991c490b2ee14fe05.tar.bz2 |
Minor C++ fixes found by Clang.
In cases where I've added an #include, it's generally due to Clang being
more picky about templates being available during expansions.
Review URL: http://codereview.chromium.org/1432003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libjingle')
-rw-r--r-- | third_party/libjingle/files/talk/base/stringutils.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/third_party/libjingle/files/talk/base/stringutils.h b/third_party/libjingle/files/talk/base/stringutils.h index 2ad071a..03fb749 100644 --- a/third_party/libjingle/files/talk/base/stringutils.h +++ b/third_party/libjingle/files/talk/base/stringutils.h @@ -200,15 +200,6 @@ size_t strcatn(CTYPE* buffer, size_t buflen, } template<class CTYPE> -size_t sprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, ...) { - va_list args; - va_start(args, format); - size_t len = vsprintfn(buffer, buflen, format, args); - va_end(args); - return len; -} - -template<class CTYPE> size_t vsprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, va_list args) { int len = vsnprintf(buffer, buflen, format, args); @@ -219,6 +210,15 @@ size_t vsprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, return len; } +template<class CTYPE> +size_t sprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, ...) { + va_list args; + va_start(args, format); + size_t len = vsprintfn(buffer, buflen, format, args); + va_end(args); + return len; +} + /////////////////////////////////////////////////////////////////////////////// // Allow safe comparing and copying ascii (not UTF-8) with both wide and // non-wide character strings. |