From 9c729e19377beef0d44cea23a38de77332c9b872 Mon Sep 17 00:00:00 2001 From: Maxim Kot Date: Sun, 25 Mar 2018 18:21:42 +0000 Subject: [PATCH] UB fixed. Forgotten return was removed. --- src/command_line.cc | 1 - src/method.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/command_line.cc b/src/command_line.cc index 1a6b217b..91f96e0d 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -63,7 +63,6 @@ bool ShouldDisplayMethodTiming(MethodType type) { type != kMethodType_TextDocumentPublishDiagnostics && type != kMethodType_CqueryPublishInactiveRegions && type != kMethodType_Unknown; - return true; } void PrintHelp() { diff --git a/src/method.h b/src/method.h index 8a3673d3..77d92616 100644 --- a/src/method.h +++ b/src/method.h @@ -5,7 +5,7 @@ #include -using MethodType = std::string; +using MethodType = const char*; extern MethodType kMethodType_Unknown; extern MethodType kMethodType_Exit; extern MethodType kMethodType_TextDocumentPublishDiagnostics;