From 143711184bd4ce8919923cbeb23645b2825e3847 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 30 Nov 2024 14:45:05 -0500 Subject: [PATCH] make names const in mmeventcallback --- MMCore/MMEventCallback.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MMCore/MMEventCallback.h b/MMCore/MMEventCallback.h index 49ddc497c..c0ccb8a57 100644 --- a/MMCore/MMEventCallback.h +++ b/MMCore/MMEventCallback.h @@ -65,23 +65,23 @@ class MMEventCallback std::cout << "onPixelSizeAffineChanged() " << v0 << "-" << v1 << "-" << v2 << "-" << v3 << "-" << v4 << "-" << v5 << '\n'; } - virtual void onStagePositionChanged(char* name, double pos) + virtual void onStagePositionChanged(const char* name, double pos) { std::cout << "onStagePositionChanged()" << name << " " << pos << '\n'; } - virtual void onXYStagePositionChanged(char* name, double xpos, double ypos) + virtual void onXYStagePositionChanged(const char* name, double xpos, double ypos) { std::cout << "onXYStagePositionChanged()" << name << " " << xpos; std::cout << " " << ypos << '\n'; } - virtual void onExposureChanged(char* name, double newExposure) + virtual void onExposureChanged(const char* name, double newExposure) { std::cout << "onExposureChanged()" << name << " " << newExposure << '\n'; } - virtual void onSLMExposureChanged(char* name, double newExposure) + virtual void onSLMExposureChanged(const char* name, double newExposure) { std::cout << "onSLMExposureChanged()" << name << " " << newExposure << '\n'; }