mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Utilize new functions for converting strings to upper/lower case (#2956)
* Utilize new functions for converting strings to upper/lower case * Adapt to updated file name * Use new function signature * Update ghoul
This commit is contained in:
@@ -204,7 +204,7 @@ namespace {
|
||||
// Collect name, image url and credits
|
||||
std::string name = attribute(node, Name);
|
||||
if (std::islower(name[0])) {
|
||||
// convert string to upper case
|
||||
// convert first character in string to upper case
|
||||
name[0] = static_cast<char>(std::toupper(name[0]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user