Skip to content

Commit ff43317

Browse files
committed
Update to the latest oatpp API
1 parent 2ff78aa commit ff43317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ oatpp::String StaticFilesManager::getExtension(const oatpp::String& filename) {
1616
if(dotPos != 0 && dotPos < filename->getSize() - 1) {
1717
return oatpp::String((const char*)&filename->getData()[dotPos + 1], filename->getSize() - dotPos - 1);
1818
}
19-
return oatpp::String::empty();
19+
return nullptr;
2020
}
2121

2222
oatpp::String StaticFilesManager::getFile(const oatpp::String& path) {
@@ -48,7 +48,7 @@ oatpp::String StaticFilesManager::guessMimeType(const oatpp::String& filename) {
4848
}
4949

5050
}
51-
return oatpp::String::empty();
51+
return nullptr;
5252
}
5353

5454
oatpp::String loadFromFile(const char* fileName) {

0 commit comments

Comments
 (0)