diff options
Diffstat (limited to 'linden/indra/newview/llwaterparamset.cpp')
-rw-r--r-- | linden/indra/newview/llwaterparamset.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llwaterparamset.cpp b/linden/indra/newview/llwaterparamset.cpp index 78d882a..e7a05f4 100644 --- a/linden/indra/newview/llwaterparamset.cpp +++ b/linden/indra/newview/llwaterparamset.cpp | |||
@@ -87,7 +87,7 @@ LLWaterParamSet::LLWaterParamSet(void) : | |||
87 | 87 | ||
88 | } | 88 | } |
89 | 89 | ||
90 | void LLWaterParamSet::set(const char * paramName, float x) | 90 | void LLWaterParamSet::set(const std::string& paramName, float x) |
91 | { | 91 | { |
92 | // handle case where no array | 92 | // handle case where no array |
93 | if(mParamValues[paramName].isReal()) | 93 | if(mParamValues[paramName].isReal()) |
@@ -103,19 +103,19 @@ void LLWaterParamSet::set(const char * paramName, float x) | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | void LLWaterParamSet::set(const char * paramName, float x, float y) { | 106 | void LLWaterParamSet::set(const std::string& paramName, float x, float y) { |
107 | mParamValues[paramName][0] = x; | 107 | mParamValues[paramName][0] = x; |
108 | mParamValues[paramName][1] = y; | 108 | mParamValues[paramName][1] = y; |
109 | } | 109 | } |
110 | 110 | ||
111 | void LLWaterParamSet::set(const char * paramName, float x, float y, float z) | 111 | void LLWaterParamSet::set(const std::string& paramName, float x, float y, float z) |
112 | { | 112 | { |
113 | mParamValues[paramName][0] = x; | 113 | mParamValues[paramName][0] = x; |
114 | mParamValues[paramName][1] = y; | 114 | mParamValues[paramName][1] = y; |
115 | mParamValues[paramName][2] = z; | 115 | mParamValues[paramName][2] = z; |
116 | } | 116 | } |
117 | 117 | ||
118 | void LLWaterParamSet::set(const char * paramName, float x, float y, float z, float w) | 118 | void LLWaterParamSet::set(const std::string& paramName, float x, float y, float z, float w) |
119 | { | 119 | { |
120 | mParamValues[paramName][0] = x; | 120 | mParamValues[paramName][0] = x; |
121 | mParamValues[paramName][1] = y; | 121 | mParamValues[paramName][1] = y; |
@@ -123,7 +123,7 @@ void LLWaterParamSet::set(const char * paramName, float x, float y, float z, flo | |||
123 | mParamValues[paramName][3] = w; | 123 | mParamValues[paramName][3] = w; |
124 | } | 124 | } |
125 | 125 | ||
126 | void LLWaterParamSet::set(const char * paramName, const float * val) | 126 | void LLWaterParamSet::set(const std::string& paramName, const float * val) |
127 | { | 127 | { |
128 | mParamValues[paramName][0] = val[0]; | 128 | mParamValues[paramName][0] = val[0]; |
129 | mParamValues[paramName][1] = val[1]; | 129 | mParamValues[paramName][1] = val[1]; |
@@ -131,7 +131,7 @@ void LLWaterParamSet::set(const char * paramName, const float * val) | |||
131 | mParamValues[paramName][3] = val[3]; | 131 | mParamValues[paramName][3] = val[3]; |
132 | } | 132 | } |
133 | 133 | ||
134 | void LLWaterParamSet::set(const char * paramName, const LLVector4 & val) | 134 | void LLWaterParamSet::set(const std::string& paramName, const LLVector4 & val) |
135 | { | 135 | { |
136 | mParamValues[paramName][0] = val.mV[0]; | 136 | mParamValues[paramName][0] = val.mV[0]; |
137 | mParamValues[paramName][1] = val.mV[1]; | 137 | mParamValues[paramName][1] = val.mV[1]; |
@@ -139,7 +139,7 @@ void LLWaterParamSet::set(const char * paramName, const LLVector4 & val) | |||
139 | mParamValues[paramName][3] = val.mV[3]; | 139 | mParamValues[paramName][3] = val.mV[3]; |
140 | } | 140 | } |
141 | 141 | ||
142 | void LLWaterParamSet::set(const char * paramName, const LLColor4 & val) | 142 | void LLWaterParamSet::set(const std::string& paramName, const LLColor4 & val) |
143 | { | 143 | { |
144 | mParamValues[paramName][0] = val.mV[0]; | 144 | mParamValues[paramName][0] = val.mV[0]; |
145 | mParamValues[paramName][1] = val.mV[1]; | 145 | mParamValues[paramName][1] = val.mV[1]; |
@@ -147,7 +147,7 @@ void LLWaterParamSet::set(const char * paramName, const LLColor4 & val) | |||
147 | mParamValues[paramName][3] = val.mV[3]; | 147 | mParamValues[paramName][3] = val.mV[3]; |
148 | } | 148 | } |
149 | 149 | ||
150 | LLVector4 LLWaterParamSet::getVector4(const char * paramName, bool& error) | 150 | LLVector4 LLWaterParamSet::getVector4(const std::string& paramName, bool& error) |
151 | { | 151 | { |
152 | 152 | ||
153 | // test to see if right type | 153 | // test to see if right type |
@@ -168,7 +168,7 @@ LLVector4 LLWaterParamSet::getVector4(const char * paramName, bool& error) | |||
168 | return val; | 168 | return val; |
169 | } | 169 | } |
170 | 170 | ||
171 | LLVector3 LLWaterParamSet::getVector3(const char * paramName, bool& error) | 171 | LLVector3 LLWaterParamSet::getVector3(const std::string& paramName, bool& error) |
172 | { | 172 | { |
173 | 173 | ||
174 | // test to see if right type | 174 | // test to see if right type |
@@ -188,7 +188,7 @@ LLVector3 LLWaterParamSet::getVector3(const char * paramName, bool& error) | |||
188 | return val; | 188 | return val; |
189 | } | 189 | } |
190 | 190 | ||
191 | LLVector2 LLWaterParamSet::getVector2(const char * paramName, bool& error) | 191 | LLVector2 LLWaterParamSet::getVector2(const std::string& paramName, bool& error) |
192 | { | 192 | { |
193 | // test to see if right type | 193 | // test to see if right type |
194 | int ttest; | 194 | int ttest; |
@@ -208,7 +208,7 @@ LLVector2 LLWaterParamSet::getVector2(const char * paramName, bool& error) | |||
208 | return val; | 208 | return val; |
209 | } | 209 | } |
210 | 210 | ||
211 | F32 LLWaterParamSet::getFloat(const char * paramName, bool& error) | 211 | F32 LLWaterParamSet::getFloat(const std::string& paramName, bool& error) |
212 | { | 212 | { |
213 | 213 | ||
214 | // test to see if right type | 214 | // test to see if right type |