diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 07:25:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 07:25:02 +0400 |
commit | c96f28a718b0c94b52781cc91d384d2aeedf8c02 (patch) | |
tree | d164435bb63ce61131d8689a3cbbdfda65a4c9c4 /intern/itasc | |
parent | 69260601851bfcf1193b95950e37abf1d662b0a4 (diff) |
- use %u rather tham %d for unsigned ints in string formatting funcs.
- replace (strlen(str) == 0) with str[0]=='\0'
Diffstat (limited to 'intern/itasc')
-rw-r--r-- | intern/itasc/kdl/frames_io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/itasc/kdl/frames_io.cpp b/intern/itasc/kdl/frames_io.cpp index d84e95c766b..3db0790cabf 100644 --- a/intern/itasc/kdl/frames_io.cpp +++ b/intern/itasc/kdl/frames_io.cpp @@ -133,7 +133,7 @@ std::istream& operator >> (std::istream& is,Vector& v) { IOTrace("Stream input Vector (vector or ZERO)"); char storage[10]; EatWord(is,"[]",storage,10); - if (strlen(storage)==0) { + if (storage[0]=='\0') { Eat(is,'['); is >> v(0); Eat(is,','); @@ -194,7 +194,7 @@ std::istream& operator >> (std::istream& is,Rotation& r) { IOTrace("Stream input Rotation (Matrix or EULERZYX, EULERZYZ,RPY, ROT, IDENTITY)"); char storage[10]; EatWord(is,"[]",storage,10); - if (strlen(storage)==0) { + if (storage[0]=='\0') { Eat(is,'['); for (int i=0;i<3;i++) { is >> r(i,0); @@ -255,7 +255,7 @@ std::istream& operator >> (std::istream& is,Frame& T) { IOTrace("Stream input Frame (Rotation,Vector) or DH[...]"); char storage[10]; EatWord(is,"[",storage,10); - if (strlen(storage)==0) { + if (storage[0]=='\0') { Eat(is,'['); is >> T.M; is >> T.p; |