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

Unified Diff: src/counters.cc

Issue 1940: Replaced calls to functions that msvc consider deprecated. Used... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/counters.h ('k') | src/disasm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.cc
===================================================================
--- src/counters.cc (revision 280)
+++ src/counters.cc (working copy)
@@ -39,9 +39,9 @@
stop_time_(0) { // initialize to avoid compiler complaints
int len = wcslen(name);
// we prepend the name with 'c.' to indicate that it is a counter.
- name_ = NewArray<wchar_t>(len+3);
- wcscpy(name_, L"t:");
- wcscpy(&name_[2], name);
+ name_ = Vector<wchar_t>::New(len+3);
+ OS::WcsCpy(name_, L"t:");
+ OS::WcsCpy(name_ + 2, name);
}
// Start the timer.
« no previous file with comments | « src/counters.h ('k') | src/disasm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698