Browse Source

misc: remove 100% of the "using namespace std;" madness.

undefined
Sam Hocevar 10 years ago
parent
commit
ad9a388e80
49 changed files with 0 additions and 82 deletions
  1. +0
    -1
      demos/tutorial/01_triangle.cpp
  2. +0
    -1
      demos/tutorial/02_cube.cpp
  3. +0
    -1
      demos/tutorial/03_noise.cpp
  4. +0
    -1
      demos/tutorial/04_texture.cpp
  5. +0
    -1
      demos/tutorial/05_easymesh.cpp
  6. +0
    -1
      demos/tutorial/06_sprite.cpp
  7. +0
    -1
      demos/tutorial/07_input.cpp
  8. +0
    -1
      demos/tutorial/08_fbo.cpp
  9. +0
    -1
      demos/tutorial/12_voronoi.cpp
  10. +0
    -2
      src/application/application.cpp
  11. +0
    -2
      src/debug/fps.cpp
  12. +0
    -2
      src/debug/record.cpp
  13. +0
    -2
      src/debug/stats.cpp
  14. +0
    -2
      src/dict.cpp
  15. +0
    -2
      src/font.cpp
  16. +0
    -2
      src/gpu/framebuffer.cpp
  17. +0
    -2
      src/gpu/indexbuffer.cpp
  18. +0
    -2
      src/gpu/shader.cpp
  19. +0
    -2
      src/gpu/texture.cpp
  20. +0
    -2
      src/gpu/vertexbuffer.cpp
  21. +0
    -2
      src/gradient.cpp
  22. +0
    -2
      src/image/codec/android-image.cpp
  23. +0
    -2
      src/image/codec/dummy-image.cpp
  24. +0
    -2
      src/image/codec/gdiplus-image.cpp
  25. +0
    -2
      src/image/codec/imlib2-image.cpp
  26. +0
    -2
      src/image/codec/ios-image.cpp
  27. +0
    -2
      src/image/codec/oric-image.cpp
  28. +0
    -2
      src/image/codec/ps3-image.cpp
  29. +0
    -2
      src/image/codec/sdl-image.cpp
  30. +0
    -2
      src/image/codec/zed-image.cpp
  31. +0
    -2
      src/image/codec/zed-palette-image.cpp
  32. +0
    -2
      src/lol/unit.h
  33. +0
    -2
      src/math/geometry.cpp
  34. +0
    -2
      src/math/half.cpp
  35. +0
    -2
      src/math/real.cpp
  36. +0
    -2
      src/math/trig.cpp
  37. +0
    -2
      src/math/vector.cpp
  38. +0
    -2
      src/platform/ps3/ps3input.cpp
  39. +0
    -2
      src/sample.cpp
  40. +0
    -2
      src/text.cpp
  41. +0
    -2
      src/tileset.cpp
  42. +0
    -2
      src/video.cpp
  43. +0
    -1
      test/benchmark/half.cpp
  44. +0
    -1
      test/benchmark/real.cpp
  45. +0
    -1
      test/benchmark/trig.cpp
  46. +0
    -1
      test/benchmark/vector.cpp
  47. +0
    -1
      test/benchsuite.cpp
  48. +0
    -1
      test/math/poly.cpp
  49. +0
    -1
      test/sandbox/sample.cpp

+ 0
- 1
demos/tutorial/01_triangle.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(01_triangle); LOLFX_RESOURCE_DECLARE(01_triangle);


+ 0
- 1
demos/tutorial/02_cube.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(02_cube); LOLFX_RESOURCE_DECLARE(02_cube);


+ 0
- 1
demos/tutorial/03_noise.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(03_noise); LOLFX_RESOURCE_DECLARE(03_noise);


+ 0
- 1
demos/tutorial/04_texture.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


static int const TEXTURE_WIDTH = 256; static int const TEXTURE_WIDTH = 256;


+ 0
- 1
demos/tutorial/05_easymesh.cpp View File

@@ -15,7 +15,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


#define USE_CUSTOM_SHADER 1 #define USE_CUSTOM_SHADER 1


+ 0
- 1
demos/tutorial/06_sprite.cpp View File

@@ -15,7 +15,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


class SpriteTutorial : public WorldEntity class SpriteTutorial : public WorldEntity


+ 0
- 1
demos/tutorial/07_input.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(07_input); LOLFX_RESOURCE_DECLARE(07_input);


+ 0
- 1
demos/tutorial/08_fbo.cpp View File

@@ -15,7 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(08_fbo); LOLFX_RESOURCE_DECLARE(08_fbo);


+ 0
- 1
demos/tutorial/12_voronoi.cpp View File

@@ -16,7 +16,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;
using namespace lol; using namespace lol;


LOLFX_RESOURCE_DECLARE(12_voronoi); LOLFX_RESOURCE_DECLARE(12_voronoi);


+ 0
- 2
src/application/application.cpp View File

@@ -35,8 +35,6 @@
# include "eglapp.h" # include "eglapp.h"
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/debug/fps.cpp View File

@@ -17,8 +17,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/debug/record.cpp View File

@@ -21,8 +21,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/debug/stats.cpp View File

@@ -17,8 +17,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "loldebug.h" #include "loldebug.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/dict.cpp View File

@@ -21,8 +21,6 @@
# define strcasecmp _stricmp # define strcasecmp _stricmp
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/font.cpp View File

@@ -18,8 +18,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gpu/framebuffer.cpp View File

@@ -25,8 +25,6 @@
# undef far /* Fuck Microsoft again */ # undef far /* Fuck Microsoft again */
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gpu/indexbuffer.cpp View File

@@ -25,8 +25,6 @@
# undef far /* Fuck Microsoft again */ # undef far /* Fuck Microsoft again */
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gpu/shader.cpp View File

@@ -34,8 +34,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "lolgl.h" #include "lolgl.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gpu/texture.cpp View File

@@ -21,8 +21,6 @@
# include <d3d9.h> # include <d3d9.h>
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gpu/vertexbuffer.cpp View File

@@ -25,8 +25,6 @@
# undef far /* Fuck Microsoft again */ # undef far /* Fuck Microsoft again */
#endif #endif


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/gradient.cpp View File

@@ -14,8 +14,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

LOLFX_RESOURCE_DECLARE(gradient); LOLFX_RESOURCE_DECLARE(gradient);


namespace lol namespace lol


+ 0
- 2
src/image/codec/android-image.cpp View File

@@ -24,8 +24,6 @@ extern "C" {
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/dummy-image.cpp View File

@@ -15,8 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/gdiplus-image.cpp View File

@@ -16,8 +16,6 @@


#include <algorithm> #include <algorithm>


using namespace std;

#include <windows.h> #include <windows.h>
#include <gdiplus.h> #include <gdiplus.h>




+ 0
- 2
src/image/codec/imlib2-image.cpp View File

@@ -19,8 +19,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/ios-image.cpp View File

@@ -19,8 +19,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/oric-image.cpp View File

@@ -15,8 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/ps3-image.cpp View File

@@ -21,8 +21,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/sdl-image.cpp View File

@@ -28,8 +28,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/zed-image.cpp View File

@@ -16,8 +16,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/image/codec/zed-palette-image.cpp View File

@@ -15,8 +15,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "../../image/image-private.h" #include "../../image/image-private.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/lol/unit.h View File

@@ -24,8 +24,6 @@
namespace lol namespace lol
{ {


using namespace std;

/* /*
* This is the base class for all fixtures. It keeps track of all * This is the base class for all fixtures. It keeps track of all
* fixtures registered through the LOLUNIT_FIXTURE macro and puts them * fixtures registered through the LOLUNIT_FIXTURE macro and puts them


+ 0
- 2
src/math/geometry.cpp View File

@@ -20,8 +20,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {
//Test epsilon stuff //Test epsilon stuff


+ 0
- 2
src/math/half.cpp View File

@@ -22,8 +22,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/math/real.cpp View File

@@ -19,8 +19,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/math/trig.cpp View File

@@ -18,8 +18,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

// Optimisation helpers // Optimisation helpers
#if defined __GNUC__ #if defined __GNUC__
# define __likely(x) __builtin_expect(!!(x), 1) # define __likely(x) __builtin_expect(!!(x), 1)


+ 0
- 2
src/math/vector.cpp View File

@@ -19,8 +19,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/platform/ps3/ps3input.cpp View File

@@ -23,8 +23,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "ps3input.h" #include "ps3input.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/sample.cpp View File

@@ -33,8 +33,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/text.cpp View File

@@ -18,8 +18,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/tileset.cpp View File

@@ -28,8 +28,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 2
src/video.cpp View File

@@ -29,8 +29,6 @@
#include <lol/main.h> #include <lol/main.h>
#include "lolgl.h" #include "lolgl.h"


using namespace std;

namespace lol namespace lol
{ {




+ 0
- 1
test/benchmark/half.cpp View File

@@ -16,7 +16,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


static size_t const HALF_TABLE_SIZE = 1024 * 1024; static size_t const HALF_TABLE_SIZE = 1024 * 1024;


+ 0
- 1
test/benchmark/real.cpp View File

@@ -16,7 +16,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


static size_t const REAL_TABLE_SIZE = 10000; static size_t const REAL_TABLE_SIZE = 10000;


+ 0
- 1
test/benchmark/trig.cpp View File

@@ -20,7 +20,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


static size_t const TRIG_TABLE_SIZE = 128 * 1024; static size_t const TRIG_TABLE_SIZE = 128 * 1024;


+ 0
- 1
test/benchmark/vector.cpp View File

@@ -16,7 +16,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


static size_t const MATRIX_TABLE_SIZE = 64 * 1024; static size_t const MATRIX_TABLE_SIZE = 64 * 1024;


+ 0
- 1
test/benchsuite.cpp View File

@@ -16,7 +16,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


void bench_real(int mode); void bench_real(int mode);


+ 0
- 1
test/math/poly.cpp View File

@@ -17,7 +17,6 @@
#include <lol/main.h> #include <lol/main.h>


using namespace lol; using namespace lol;
using namespace std;


mat4 multiply_copy(mat4 m1, mat4 m2, mat4 m3) mat4 multiply_copy(mat4 m1, mat4 m2, mat4 m3)
{ {


+ 0
- 1
test/sandbox/sample.cpp View File

@@ -14,7 +14,6 @@


#include <lol/main.h> #include <lol/main.h>


using namespace std;
using namespace lol; using namespace lol;


int main(int argc, char **argv) int main(int argc, char **argv)


Loading…
Cancel
Save