diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmath/v3dmath.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llmath/v3dmath.cpp')
-rw-r--r-- | linden/indra/llmath/v3dmath.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/llmath/v3dmath.cpp b/linden/indra/llmath/v3dmath.cpp index b59f519..5a3246c 100644 --- a/linden/indra/llmath/v3dmath.cpp +++ b/linden/indra/llmath/v3dmath.cpp | |||
@@ -132,15 +132,15 @@ const LLVector3d& LLVector3d::rotVec(F64 angle, F64 x, F64 y, F64 z) | |||
132 | } | 132 | } |
133 | 133 | ||
134 | 134 | ||
135 | BOOL LLVector3d::parseVector3d(const char* buf, LLVector3d* value) | 135 | BOOL LLVector3d::parseVector3d(const std::string& buf, LLVector3d* value) |
136 | { | 136 | { |
137 | if( buf == NULL || buf[0] == '\0' || value == NULL) | 137 | if( buf.empty() || value == NULL) |
138 | { | 138 | { |
139 | return FALSE; | 139 | return FALSE; |
140 | } | 140 | } |
141 | 141 | ||
142 | LLVector3d v; | 142 | LLVector3d v; |
143 | S32 count = sscanf( buf, "%lf %lf %lf", v.mdV + 0, v.mdV + 1, v.mdV + 2 ); | 143 | S32 count = sscanf( buf.c_str(), "%lf %lf %lf", v.mdV + 0, v.mdV + 1, v.mdV + 2 ); |
144 | if( 3 == count ) | 144 | if( 3 == count ) |
145 | { | 145 | { |
146 | value->setVec( v ); | 146 | value->setVec( v ); |