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

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: fixups Created 5 years, 11 months 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 | « content/child/browser_font_resource_trusted.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/child/browser_font_resource_trusted.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698