Преглед на файлове

Add missing const-qualifiers (#1732)

HALX99 преди 5 години
родител
ревизия
e1692353f2
променени са 2 файла, в които са добавени 12 реда и са изтрити 12 реда
  1. 6 6
      spine-cpp/spine-cpp/include/spine/EventData.h
  2. 6 6
      spine-cpp/spine-cpp/src/spine/EventData.cpp

+ 6 - 6
spine-cpp/spine-cpp/include/spine/EventData.h

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

+ 6 - 6
spine-cpp/spine-cpp/src/spine/EventData.cpp

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