src: Always return a value from non void function getSearchTypeName() (#761)

getSearchTypeName() needs to always return std:wstring.

We cover all cases because our switch contains all current possibilities
for Search_Type.

But the compiler will still warn/error on this, depending on system
configuration.

Regards https://github.com/CoatiSoftware/Sourcetrail/issues/758
This commit is contained in:
Michael Vetter
2019-12-16 15:53:57 +01:00
committed by Eberhard Graether
parent 25bb613124
commit 2e341240ca
+2
View File
@@ -33,6 +33,8 @@ std::wstring SearchMatch::getSearchTypeName(SearchType type)
case SEARCH_FULLTEXT:
return L"fulltext";
}
return L"none";
}
std::wstring SearchMatch::searchMatchesToString(const std::vector<SearchMatch>& matches)