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(), '\\', '/');
|
||||
|
||||
str = result;
|
||||
if (c == '"')
|
||||
return UserHeader;
|
||||
else
|
||||
return SystemHeader;
|
||||
|
||||
return (c == '\"') ? UserHeader : SystemHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue