Fix warning in RenderableKameleonVolume

This commit is contained in:
Alexander Bock
2017-04-07 22:40:11 -04:00
parent 7f2aa891d1
commit 175b253a3c

View File

@@ -288,7 +288,12 @@ std::string RenderableKameleonVolume::cacheSuffix() {
void RenderableKameleonVolume::loadFromPath(const std::string& path) {
ghoul::filesystem::File file(path);
std::string extension = file.fileExtension();
std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
std::transform(
extension.begin(),
extension.end(),
extension.begin(),
[](char v) { return static_cast<char>(tolower(v)); }
);
if (extension == "cdf") {
loadCdf(path);
} else {