Skip to content
Permalink
Browse files
CPUT ptoc: Get rid of temporary allocs
Load time: 1.95s -> 1.88s
  • Loading branch information
rygorous committed Mar 4, 2013
1 parent bbbfb89 commit beb92aa
Showing 1 changed file with 3 additions and 7 deletions.
@@ -323,14 +323,10 @@ enum eCPUTMapType
//-----------------------------------------------------------------------------
inline std::wstring ptoc(const void *pPointer)
{
std::wstringstream wstream;
//std::ostringstream os;
wstream << pPointer;
wchar_t wcstring[65];
swprintf_s(wcstring, _L("%p"), pPointer);

std::wstring address;
address = wstream.str();

return address;
return wcstring;
}

// convert char* to wide/unicode string

0 comments on commit beb92aa

Please sign in to comment.