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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_win.cc

Issue 10224001: Add a few missing "typename"s. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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: ui/base/dragdrop/os_exchange_data_provider_win.cc
diff --git a/ui/base/dragdrop/os_exchange_data_provider_win.cc b/ui/base/dragdrop/os_exchange_data_provider_win.cc
index 635d124b0d857edba7e82ad3abffeb62a722bffd..d5c5bf58eb3bd7578d6aeef71d1d3f7155740988 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_win.cc
+++ b/ui/base/dragdrop/os_exchange_data_provider_win.cc
@@ -828,12 +828,13 @@ static STGMEDIUM* GetStorageForBytes(const char* data, size_t bytes) {
template<class T>
static HGLOBAL CopyStringToGlobalHandle(const T& payload) {
- int bytes = static_cast<int>(payload.size() + 1) * sizeof(T::value_type);
+ int bytes =
+ static_cast<int>(payload.size() + 1) * sizeof(typename T::value_type);
HANDLE handle = GlobalAlloc(GPTR, bytes);
void* data = GlobalLock(handle);
size_t allocated = static_cast<size_t>(GlobalSize(handle));
memcpy(data, payload.c_str(), allocated);
- static_cast<T::value_type*>(data)[payload.size()] = '\0';
+ static_cast<typename T::value_type*>(data)[payload.size()] = '\0';
GlobalUnlock(handle);
return handle;
}
« 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