Mercurial > hg > svcore
comparison plugin/DSSIPluginFactory.cpp @ 1218:6b847a59d908 msvc2015_64
MSVC build fixes
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 15:54:56 +0100 |
parents | a1cd5abcb38b |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1217:046f05fa31f3 | 1218:6b847a59d908 |
---|---|
223 path.replace(f, 5, home); | 223 path.replace(f, 5, home); |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 #ifdef _WIN32 | 227 #ifdef _WIN32 |
228 char *pfiles = getenv("ProgramFiles"); | 228 const char *pfiles = getenv("ProgramFiles"); |
229 if (!pfiles) pfiles = "C:\\Program Files"; | 229 if (!pfiles) pfiles = "C:\\Program Files"; |
230 { | 230 { |
231 std::string::size_type f; | 231 std::string::size_type f; |
232 while ((f = path.find("%ProgramFiles%")) != std::string::npos && | 232 while ((f = path.find("%ProgramFiles%")) != std::string::npos && |
233 f < path.length()) { | 233 f < path.length()) { |