Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: webrtc/modules/rtp_rtcp/source/byte_io.h

Issue 1506823002: [rtp_rtcp] fixed namespaces lint warnings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/fec_private_tables_bursty.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/byte_io.h
diff --git a/webrtc/modules/rtp_rtcp/source/byte_io.h b/webrtc/modules/rtp_rtcp/source/byte_io.h
index d8903b8483cf929ad532adbd388c2e3ff286847c..c69c1780785e7c946d304584b09ad3cf90fa3843 100644
--- a/webrtc/modules/rtp_rtcp/source/byte_io.h
+++ b/webrtc/modules/rtp_rtcp/source/byte_io.h
@@ -51,17 +51,14 @@ namespace webrtc {
// platform that doesn't use two's complement, implement conversion to/from
// wire format.
-namespace {
-inline void AssertTwosComplement() {
- // Assume the if any one signed integer type is two's complement, then all
- // other will be too.
- static_assert(
- (-1 & 0x03) == 0x03,
- "Only two's complement representation of signed integers supported.");
-}
+// Assume the if any one signed integer type is two's complement, then all
+// other will be too.
+static_assert(
+ (-1 & 0x03) == 0x03,
+ "Only two's complement representation of signed integers supported.");
+
// Plain const char* won't work for static_assert, use #define instead.
#define kSizeErrorMsg "Byte size must be less than or equal to data type size."
-}
// Utility class for getting the unsigned equivalent of a signed type.
template <typename T>
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/fec_private_tables_bursty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698