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

Side by Side Diff: Source/wtf/Vector.h

Issue 23903041: Make the Vector copy constructor for mismatched inline sizes explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 497 }
498 498
499 ~Vector() 499 ~Vector()
500 { 500 {
501 if (m_size) 501 if (m_size)
502 shrink(0); 502 shrink(0);
503 } 503 }
504 504
505 Vector(const Vector&); 505 Vector(const Vector&);
506 template<size_t otherCapacity> 506 template<size_t otherCapacity>
507 Vector(const Vector<T, otherCapacity>&); 507 explicit Vector(const Vector<T, otherCapacity>&);
508 508
509 Vector& operator=(const Vector&); 509 Vector& operator=(const Vector&);
510 template<size_t otherCapacity> 510 template<size_t otherCapacity>
511 Vector& operator=(const Vector<T, otherCapacity>&); 511 Vector& operator=(const Vector<T, otherCapacity>&);
512 512
513 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) 513 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
514 Vector(Vector&&); 514 Vector(Vector&&);
515 Vector& operator=(Vector&&); 515 Vector& operator=(Vector&&);
516 #endif 516 #endif
517 517
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i nlineCapacity>& b) 1065 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i nlineCapacity>& b)
1066 { 1066 {
1067 return !(a == b); 1067 return !(a == b);
1068 } 1068 }
1069 1069
1070 } // namespace WTF 1070 } // namespace WTF
1071 1071
1072 using WTF::Vector; 1072 using WTF::Vector;
1073 1073
1074 #endif // WTF_Vector_h 1074 #endif // WTF_Vector_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698