Skip to content

Commit

Permalink
const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog committed Sep 20, 2024
1 parent 95a1a2f commit 215669e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viam/sdk/common/version_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace viam {
namespace sdk {

std::string sdk_version() {
static std::string result = [] {
static const std::string result = [] {
std::string version_metadata(impl::k_version);
version_metadata.erase(0, version_metadata.find(';') + 1);
return version_metadata.substr(0, version_metadata.find(';'));
Expand Down

0 comments on commit 215669e

Please sign in to comment.