Add missing const-qualifiers (#1732)

This commit is contained in:
HALX99 2020-10-06 19:42:39 +08:00 committed by GitHub
parent 9bfe314aeb
commit e1692353f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -48,27 +48,27 @@ public:
/// The name of the event, which is unique within the skeleton.
const String &getName() const;
int getIntValue();
int getIntValue() const;
void setIntValue(int inValue);
float getFloatValue();
float getFloatValue() const;
void setFloatValue(float inValue);
const String &getStringValue();
const String &getStringValue() const;
void setStringValue(const String &inValue);
const String &getAudioPath();
const String &getAudioPath() const;
void setAudioPath(const String &inValue);
float getVolume();
float getVolume() const;
void setVolume(float inValue);
float getBalance();
float getBalance() const;
void setBalance(float inValue);

View File

@ -51,7 +51,7 @@ const spine::String &spine::EventData::getName() const {
return _name;
}
int spine::EventData::getIntValue() {
int spine::EventData::getIntValue() const {
return _intValue;
}
@ -59,7 +59,7 @@ void spine::EventData::setIntValue(int inValue) {
_intValue = inValue;
}
float spine::EventData::getFloatValue() {
float spine::EventData::getFloatValue() const {
return _floatValue;
}
@ -67,7 +67,7 @@ void spine::EventData::setFloatValue(float inValue) {
_floatValue = inValue;
}
const spine::String &spine::EventData::getStringValue() {
const spine::String &spine::EventData::getStringValue() const {
return _stringValue;
}
@ -75,7 +75,7 @@ void spine::EventData::setStringValue(const spine::String &inValue) {
this->_stringValue = inValue;
}
const spine::String &spine::EventData::getAudioPath() {
const spine::String &spine::EventData::getAudioPath() const {
return _audioPath;
}
@ -84,7 +84,7 @@ void spine::EventData::setAudioPath(const spine::String &inValue) {
}
float spine::EventData::getVolume() {
float spine::EventData::getVolume() const {
return _volume;
}
@ -92,7 +92,7 @@ void spine::EventData::setVolume(float inValue) {
_volume = inValue;
}
float spine::EventData::getBalance() {
float spine::EventData::getBalance() const {
return _balance;
}