mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
UB fixed.
Forgotten return was removed.
This commit is contained in:
parent
47aa9b8e23
commit
b68b063abd
@ -63,7 +63,6 @@ bool ShouldDisplayMethodTiming(MethodType type) {
|
||||
type != kMethodType_TextDocumentPublishDiagnostics &&
|
||||
type != kMethodType_CqueryPublishInactiveRegions &&
|
||||
type != kMethodType_Unknown;
|
||||
return true;
|
||||
}
|
||||
|
||||
void PrintHelp() {
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
using MethodType = std::string;
|
||||
using MethodType = const char*;
|
||||
extern MethodType kMethodType_Unknown;
|
||||
extern MethodType kMethodType_Exit;
|
||||
extern MethodType kMethodType_TextDocumentPublishDiagnostics;
|
||||
|
Loading…
Reference in New Issue
Block a user