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-11-19 15:38:56 +01:00
committed by Eberhard Gräther
parent 7edafe91f2
commit 44a8104890
+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)