cmCallVisualStudioMacro: fix a shadowing warning
This commit is contained in:
parent
dd563e1eb3
commit
8d379cd7ac
|
@ -63,12 +63,13 @@ static bool LogErrorsAsMessages;
|
||||||
{ \
|
{ \
|
||||||
if (LogErrorsAsMessages) \
|
if (LogErrorsAsMessages) \
|
||||||
{ \
|
{ \
|
||||||
std::ostringstream oss; \
|
std::ostringstream _hresult_oss; \
|
||||||
oss.flags(std::ios::hex); \
|
_hresult_oss.flags(std::ios::hex); \
|
||||||
oss << context << " failed HRESULT, hr = 0x" << hr << std::endl; \
|
_hresult_oss << context << " failed HRESULT, hr = 0x" \
|
||||||
oss.flags(std::ios::dec); \
|
<< hr << std::endl; \
|
||||||
oss << __FILE__ << "(" << __LINE__ << ")"; \
|
_hresult_oss.flags(std::ios::dec); \
|
||||||
cmSystemTools::Message(oss.str().c_str()); \
|
_hresult_oss << __FILE__ << "(" << __LINE__ << ")"; \
|
||||||
|
cmSystemTools::Message(_hresult_oss.str().c_str()); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue