summaryrefslogtreecommitdiff
path: root/core/fxcrt/bytestring.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-12-07 18:45:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-07 18:45:54 +0000
commit67454716002f2f5eae85cef4d382ecfc0e9b266d (patch)
treea34315e615a70a2592e373ff46b9a7c1421e595b /core/fxcrt/bytestring.h
parent39a076f19c05ac1ebb4f1dd15f9835ffb8611ae0 (diff)
downloadpdfium-67454716002f2f5eae85cef4d382ecfc0e9b266d.tar.xz
Add WARN_UNUSED_RESULT to ByteString::Format* methods.
Change-Id: I0caba99cb8e99ea5af49d906b576f580275620bb Reviewed-on: https://pdfium-review.googlesource.com/20570 Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/bytestring.h')
-rw-r--r--core/fxcrt/bytestring.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/fxcrt/bytestring.h b/core/fxcrt/bytestring.h
index bd414fc76f..6b167802d5 100644
--- a/core/fxcrt/bytestring.h
+++ b/core/fxcrt/bytestring.h
@@ -32,10 +32,11 @@ class ByteString {
using const_iterator = const CharType*;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
- static ByteString FormatInteger(int i);
- static ByteString FormatFloat(float f);
- static ByteString Format(const char* lpszFormat, ...);
- static ByteString FormatV(const char* lpszFormat, va_list argList);
+ static ByteString FormatInteger(int i) WARN_UNUSED_RESULT;
+ static ByteString FormatFloat(float f) WARN_UNUSED_RESULT;
+ static ByteString Format(const char* lpszFormat, ...) WARN_UNUSED_RESULT;
+ static ByteString FormatV(const char* lpszFormat,
+ va_list argList) WARN_UNUSED_RESULT;
ByteString();
ByteString(const ByteString& other);