Skip to content

Commit

Permalink
Merge pull request #530 from tlambert03/fix-const
Browse files Browse the repository at this point in the history
make names const in mmeventcallback
  • Loading branch information
marktsuchida authored Dec 18, 2024
2 parents 6adab31 + 1437111 commit af54ae9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MMCore/MMEventCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit af54ae9

Please sign in to comment.