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

Unified Diff: courgette/memory_allocator.h

Issue 2721983002: Stop using undocumented _THROW0() macro (Closed)
Patch Set: Fixing accidental patch set Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/memory_allocator.h
diff --git a/courgette/memory_allocator.h b/courgette/memory_allocator.h
index 3f5143252102f973d0e61cfc4f6b1d1e37b8bb6f..d356a3b598d09651c19e2a9c93a09d3e2aef38df 100644
--- a/courgette/memory_allocator.h
+++ b/courgette/memory_allocator.h
@@ -181,16 +181,15 @@ class MemoryAllocator {
typedef MemoryAllocator<OtherT> other;
};
- MemoryAllocator() _THROW0() {
- }
+ MemoryAllocator() {}
// We can't use an explicit constructor here, as dictated by our style guide.
// The implementation of basic_string in Visual Studio 2010 prevents this.
- MemoryAllocator(const MemoryAllocator<T>& other) _THROW0() { // NOLINT
+ MemoryAllocator(const MemoryAllocator<T>& other) { // NOLINT
}
- template<class OtherT>
- MemoryAllocator(const MemoryAllocator<OtherT>& other) _THROW0() { // NOLINT
+ template <class OtherT>
+ MemoryAllocator(const MemoryAllocator<OtherT>& other) { // NOLINT
}
~MemoryAllocator() {
@@ -252,7 +251,7 @@ class MemoryAllocator {
ptr->~T();
}
- size_type max_size() const _THROW0() {
+ size_type max_size() const {
size_type count = static_cast<size_type>(-1) / sizeof(T);
return (0 < count ? count : 1);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698