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

Unified Diff: content/renderer/devtools/lock_free_circular_queue.h

Issue 2670873002: Remove base's ALIGNOF/ALIGNAS in favor of alignof/alignas. (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: content/renderer/devtools/lock_free_circular_queue.h
diff --git a/content/renderer/devtools/lock_free_circular_queue.h b/content/renderer/devtools/lock_free_circular_queue.h
index f8a48119d0a2a32c35978cd45535283baa40dd0c..0bb2997218deb19b90c51be0b7dd6953ec36e4cb 100644
--- a/content/renderer/devtools/lock_free_circular_queue.h
+++ b/content/renderer/devtools/lock_free_circular_queue.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/memory/aligned_memory.h"
-#define CACHELINE_ALIGNED ALIGNAS(64)
+#define CACHELINE_ALIGNED alignas(64)
namespace content {
@@ -125,7 +125,7 @@ typename LockFreeCircularQueue<T, L>::Entry* LockFreeCircularQueue<T, L>::Next(
template <typename T, unsigned L>
void* LockFreeCircularQueue<T, L>::operator new(size_t size) {
typedef LockFreeCircularQueue<T, L> QueueTypeAlias;
- return base::AlignedAlloc(size, ALIGNOF(QueueTypeAlias));
+ return base::AlignedAlloc(size, alignof(QueueTypeAlias));
}
template <typename T, unsigned L>
« no previous file with comments | « content/browser/renderer_host/media/audio_input_sync_writer_unittest.cc ('k') | media/base/audio_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698