Refactoring Preprocessor. Use ternary operator instead of if-else.
This commit is contained in:
parent
ed58b63712
commit
ab30fa34e4
|
@ -1908,10 +1908,8 @@ Preprocessor::HeaderTypes Preprocessor::getHeaderFileName(std::string &str)
|
||||||
std::replace(result.begin(), result.end(), '\\', '/');
|
std::replace(result.begin(), result.end(), '\\', '/');
|
||||||
|
|
||||||
str = result;
|
str = result;
|
||||||
if (c == '"')
|
|
||||||
return UserHeader;
|
return (c == '\"') ? UserHeader : SystemHeader;
|
||||||
else
|
|
||||||
return SystemHeader;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue