From a998a88dd5f7c08022ed934a0323ead4d000da5a Mon Sep 17 00:00:00 2001 From: Cody Weaver Date: Thu, 9 Jul 2020 07:15:12 -0700 Subject: [PATCH] [MDC/LibraryInfo] Add "k" to string const to fix clang-tidy Following http://clang.llvm.org/extra/clang-tidy/checks/google-objc-global-variable-declaration.html we should be doing this. This also addresses the constant pointer issue that clang recommends. PiperOrigin-RevId: 320390941 --- components/LibraryInfo/src/MDCLibraryInfo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/LibraryInfo/src/MDCLibraryInfo.m b/components/LibraryInfo/src/MDCLibraryInfo.m index 6590c04b001..94ee1aef320 100644 --- a/components/LibraryInfo/src/MDCLibraryInfo.m +++ b/components/LibraryInfo/src/MDCLibraryInfo.m @@ -19,12 +19,12 @@ // This string is updated automatically as a part of the release process and should not be edited // manually. Do not rename this constant or change the formatting without updating the release // scripts. -static NSString const *MDCLibraryInfoVersionString = @"110.2.0"; +static NSString* const kMDCLibraryInfoVersionString = @"110.2.0"; @implementation MDCLibraryInfo + (NSString *)versionString { - return [MDCLibraryInfoVersionString copy]; // Copy because caller isn't expecting `const`. + return [kMDCLibraryInfoVersionString copy]; // Copy because caller isn't expecting `const`. } @end