Pass by const reference

This commit is contained in:
Ben Payne 2015-02-18 20:47:33 -05:00
parent be0b9728e5
commit 8862bc2f3a

View file

@ -32,7 +32,7 @@ extern "C"
int (*torque_winmain)( HINSTANCE hInstance, HINSTANCE h, LPSTR lpszCmdLine, int nShow) = NULL;
};
bool getDllName(std::wstring& dllName, const std::wstring suffix)
bool getDllName(std::wstring& dllName, const std::wstring& suffix)
{
wchar_t filenameBuf[MAX_PATH];
DWORD length = GetModuleFileNameW( NULL, filenameBuf, MAX_PATH );