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

Unified Diff: src/objects.cc

Issue 7027: Move const qualifies around to avoid GCC warnings. (GCC 4.3.2)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
===================================================================
--- src/objects.cc (revision 479)
+++ src/objects.cc (working copy)
@@ -3677,10 +3677,10 @@
static inline bool CompareStringContentsPartial(IteratorA* ia, String* b) {
if (b->IsFlat()) {
if (b->IsAsciiRepresentation()) {
- VectorIterator<const char> ib(b->ToAsciiVector());
+ VectorIterator<char> ib(b->ToAsciiVector());
return CompareStringContents(ia, &ib);
} else {
- VectorIterator<const uc16> ib(b->ToUC16Vector());
+ VectorIterator<uc16> ib(b->ToUC16Vector());
return CompareStringContents(ia, &ib);
}
} else {
@@ -3707,10 +3707,10 @@
if (this->IsFlat()) {
if (this->IsAsciiRepresentation()) {
- VectorIterator<const char> buf1(this->ToAsciiVector());
+ VectorIterator<char> buf1(this->ToAsciiVector());
return CompareStringContentsPartial(&buf1, other);
} else {
- VectorIterator<const uc16> buf1(this->ToUC16Vector());
+ VectorIterator<uc16> buf1(this->ToUC16Vector());
return CompareStringContentsPartial(&buf1, other);
}
} else {
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698