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

Unified Diff: content/child/file_info_util.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor adjustment Created 6 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
Index: content/child/file_info_util.cc
diff --git a/content/child/file_info_util.cc b/content/child/file_info_util.cc
index c605adfd6cfb331d96161218e41f234e4a0414d6..ba257310f46da7d5a4c3343ffd88ce856bec803d 100644
--- a/content/child/file_info_util.cc
+++ b/content/child/file_info_util.cc
@@ -24,6 +24,7 @@ void FileInfoToWebFileInfo(const base::File::Info& file_info,
web_file_info->type = blink::WebFileInfo::TypeFile;
}
-COMPILE_ASSERT(std::numeric_limits<double>::has_quiet_NaN, has_quiet_NaN);
+static_assert(std::numeric_limits<double>::has_quiet_NaN,
+ "should have quiet NaN");
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698