Skip to content

Commit 16113fd

Browse files
committed
make method static
1 parent ef8ec8e commit 16113fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/viam/sdk/registry/registry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ std::shared_ptr<const ResourceClientRegistration> Registry::lookup_resource_clie
163163
}
164164

165165
const google::protobuf::ServiceDescriptor* Registry::get_service_descriptor_(
166-
const char* service_full_name) const {
166+
const char* service_full_name) {
167167
const google::protobuf::DescriptorPool* p = google::protobuf::DescriptorPool::generated_pool();
168168
const google::protobuf::ServiceDescriptor* sd = p->FindServiceByName(service_full_name);
169169
if (!sd) {

src/viam/sdk/registry/registry.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ class Registry {
204204
void register_resource_client_(
205205
API api, std::shared_ptr<ResourceClientRegistration> resource_registration);
206206

207-
const google::protobuf::ServiceDescriptor* get_service_descriptor_(
208-
const char* service_full_name) const;
207+
static const google::protobuf::ServiceDescriptor* get_service_descriptor_(
208+
const char* service_full_name);
209209

210210
std::shared_ptr<const ModelRegistration> lookup_model_inlock_(
211211
const std::string& name, const std::lock_guard<std::mutex>&) const;

0 commit comments

Comments
 (0)