Преглед изворни кода

core: don't explicitly use std:: prefix when the platform may not

recognise it.
legacy
Sam Hocevar sam пре 14 година
родитељ
комит
00625f76e9
2 измењених фајлова са 4 додато и 2 уклоњено
  1. +2
    -1
      src/matrix.h
  2. +2
    -1
      src/numeric.h

+ 2
- 1
src/matrix.h Прегледај датотеку

@@ -113,7 +113,8 @@ namespace lol
\ \
inline float len() const \ inline float len() const \
{ \ { \
return std::sqrtf((float)sqlen()); \ using namespace std; \
return sqrtf((float)sqlen()); \
} }


template <typename T> struct Vec2; template <typename T> struct Vec2;


+ 2
- 1
src/numeric.h Прегледај датотеку

@@ -26,7 +26,8 @@ namespace lol
/* Random float value */ /* Random float value */
static inline float RandF() static inline float RandF()
{ {
return (float)std::rand() / RAND_MAX; using namespace std;
return (float)rand() / RAND_MAX;
} }


static inline float RandF(float val) static inline float RandF(float val)


||||||
x
 
000:0
Loading…
Откажи
Сачувај