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

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: 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
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 496 }
497 497
498 ~Vector() 498 ~Vector()
499 { 499 {
500 if (m_size) 500 if (m_size)
501 shrink(0); 501 shrink(0);
502 } 502 }
503 503
504 Vector(const Vector&); 504 Vector(const Vector&);
505 template<size_t otherCapacity> 505 template<size_t otherCapacity>
506 Vector(const Vector<T, otherCapacity>&); 506 explicit Vector(const Vector<T, otherCapacity>&);
507 507
508 Vector& operator=(const Vector&); 508 Vector& operator=(const Vector&);
509 template<size_t otherCapacity> 509 template<size_t otherCapacity>
510 Vector& operator=(const Vector<T, otherCapacity>&); 510 Vector& operator=(const Vector<T, otherCapacity>&);
511 511
512 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) 512 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
513 Vector(Vector&&); 513 Vector(Vector&&);
514 Vector& operator=(Vector&&); 514 Vector& operator=(Vector&&);
515 #endif 515 #endif
516 516
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i nlineCapacity>& b) 1064 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i nlineCapacity>& b)
1065 { 1065 {
1066 return !(a == b); 1066 return !(a == b);
1067 } 1067 }
1068 1068
1069 } // namespace WTF 1069 } // namespace WTF
1070 1070
1071 using WTF::Vector; 1071 using WTF::Vector;
1072 1072
1073 #endif // WTF_Vector_h 1073 #endif // WTF_Vector_h
OLDNEW
« Source/modules/indexeddb/IDBObjectStore.cpp ('K') | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698