diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2014-05-04 05:56:45 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-05-04 05:56:45 +0200 |
commit | bcd836eb265cb5e44aeac6a343342f7b372056c6 (patch) | |
tree | 712b0610062aefcd062bad03a5f5f37be4944a96 /src/utils | |
parent | 504573a2d336495a9e754d2ee96ba95de450fd6c (diff) | |
download | usdx-bcd836eb265cb5e44aeac6a343342f7b372056c6.tar.gz usdx-bcd836eb265cb5e44aeac6a343342f7b372056c6.tar.xz usdx-bcd836eb265cb5e44aeac6a343342f7b372056c6.zip |
remove semicolon after namespace
Class definitions have to end with a semicolon but not namespaces. So
remove this everywhere.
Diffstat (limited to 'src/utils')
30 files changed, 34 insertions, 39 deletions
diff --git a/src/utils/activatable.hpp b/src/utils/activatable.hpp index 0142ee0d..d2aadc85 100644 --- a/src/utils/activatable.hpp +++ b/src/utils/activatable.hpp @@ -33,6 +33,6 @@ namespace usdx virtual void enable(void) = 0; virtual void disable(void) = 0; }; -}; +} #endif diff --git a/src/utils/activator.cpp b/src/utils/activator.cpp index 19cf257e..f8eb1335 100644 --- a/src/utils/activator.cpp +++ b/src/utils/activator.cpp @@ -40,4 +40,4 @@ namespace usdx activatable->disable(); } } -}; +} diff --git a/src/utils/activator.hpp b/src/utils/activator.hpp index 681fcbf7..d11d7922 100644 --- a/src/utils/activator.hpp +++ b/src/utils/activator.hpp @@ -40,6 +40,6 @@ namespace usdx Activator(Activatable* activatable); virtual ~Activator(); }; -}; +} #endif diff --git a/src/utils/base_exception.cpp b/src/utils/base_exception.cpp index 57a96a71..c3020c29 100644 --- a/src/utils/base_exception.cpp +++ b/src/utils/base_exception.cpp @@ -39,4 +39,4 @@ namespace usdx return message.c_str(); } -}; +} diff --git a/src/utils/base_exception.hpp b/src/utils/base_exception.hpp index 8933c1a2..a1ebd444 100644 --- a/src/utils/base_exception.hpp +++ b/src/utils/base_exception.hpp @@ -42,6 +42,6 @@ namespace usdx ~BaseException() throw (); virtual const char* what() const throw(); }; -}; +} #endif diff --git a/src/utils/binary_file.cpp b/src/utils/binary_file.cpp index 536bdc70..6f331bce 100644 --- a/src/utils/binary_file.cpp +++ b/src/utils/binary_file.cpp @@ -74,4 +74,4 @@ namespace usdx return (void*)content; } -}; +} diff --git a/src/utils/binary_file.hpp b/src/utils/binary_file.hpp index 51665c9c..cfc6a76c 100644 --- a/src/utils/binary_file.hpp +++ b/src/utils/binary_file.hpp @@ -46,6 +46,6 @@ namespace usdx const void* get_content(void); }; -}; +} #endif diff --git a/src/utils/bool_translator.hpp b/src/utils/bool_translator.hpp index dad43f12..c7d8bfc2 100644 --- a/src/utils/bool_translator.hpp +++ b/src/utils/bool_translator.hpp @@ -54,18 +54,16 @@ namespace usdx return boost::optional<internal_type>(b ? "true" : "false"); } }; -}; +} namespace boost { namespace property_tree { - template<typename Ch, typename Traits, typename Alloc> struct translator_between<std::basic_string< Ch, Traits, Alloc >, bool> { typedef usdx::BoolTranslator type; }; - - }; -}; + } +} #endif diff --git a/src/utils/color/hsv.cpp b/src/utils/color/hsv.cpp index 11df9ec2..ecb155e6 100644 --- a/src/utils/color/hsv.cpp +++ b/src/utils/color/hsv.cpp @@ -102,4 +102,4 @@ namespace usdx return value; } -}; +} diff --git a/src/utils/color/hsv.hpp b/src/utils/color/hsv.hpp index 748a9b74..c56b9aee 100644 --- a/src/utils/color/hsv.hpp +++ b/src/utils/color/hsv.hpp @@ -61,6 +61,6 @@ namespace usdx uint8_t get_value(void) const; }; -}; +} #endif diff --git a/src/utils/color/rgb.cpp b/src/utils/color/rgb.cpp index c43b85c4..224c2ea0 100644 --- a/src/utils/color/rgb.cpp +++ b/src/utils/color/rgb.cpp @@ -168,4 +168,4 @@ namespace usdx { return (red == 255) && (green == 255) && (blue == 255); } -}; +} diff --git a/src/utils/color/rgb.hpp b/src/utils/color/rgb.hpp index 6871e452..de96bf13 100644 --- a/src/utils/color/rgb.hpp +++ b/src/utils/color/rgb.hpp @@ -62,6 +62,6 @@ namespace usdx bool is_black(void) const; bool is_white(void) const; }; -}; +} #endif diff --git a/src/utils/color/rgba.cpp b/src/utils/color/rgba.cpp index 777bb720..3b669bba 100644 --- a/src/utils/color/rgba.cpp +++ b/src/utils/color/rgba.cpp @@ -96,4 +96,4 @@ namespace usdx { return 4; } -}; +} diff --git a/src/utils/color/rgba.hpp b/src/utils/color/rgba.hpp index 5d67a92a..36f1e7a7 100644 --- a/src/utils/color/rgba.hpp +++ b/src/utils/color/rgba.hpp @@ -46,6 +46,6 @@ namespace usdx virtual const GLubyte* get_array(size_t len) const; int get_array_comonent_count(void) const; }; -}; +} #endif diff --git a/src/utils/dimension.hpp b/src/utils/dimension.hpp index 85799c38..5f1e871e 100644 --- a/src/utils/dimension.hpp +++ b/src/utils/dimension.hpp @@ -77,6 +77,6 @@ namespace usdx height = value; } }; -}; +} #endif diff --git a/src/utils/dimension_translator.hpp b/src/utils/dimension_translator.hpp index 8b34df3b..e3df4fee 100644 --- a/src/utils/dimension_translator.hpp +++ b/src/utils/dimension_translator.hpp @@ -64,19 +64,17 @@ namespace usdx return boost::optional<internal_type>(out.str()); } }; -}; +} namespace boost { namespace property_tree { - template<typename Ch, typename Traits, typename Alloc> struct translator_between<std::basic_string< Ch, Traits, Alloc >, usdx::Dimension<int> > { typedef usdx::DimensionTranslator<int> type; }; - - }; -}; + } +} #endif diff --git a/src/utils/disposable.cpp b/src/utils/disposable.cpp index b77821cd..90f33ca5 100644 --- a/src/utils/disposable.cpp +++ b/src/utils/disposable.cpp @@ -49,4 +49,4 @@ namespace usdx disposed = true; } } -}; +} diff --git a/src/utils/disposable.hpp b/src/utils/disposable.hpp index 1f8f2d8a..2f1da372 100644 --- a/src/utils/disposable.hpp +++ b/src/utils/disposable.hpp @@ -44,6 +44,6 @@ namespace usdx void dispose(void); }; -}; +} #endif diff --git a/src/utils/disposer.hpp b/src/utils/disposer.hpp index 727676cd..9f826d37 100644 --- a/src/utils/disposer.hpp +++ b/src/utils/disposer.hpp @@ -52,6 +52,6 @@ namespace usdx delete disposable; } }; -}; +} #endif diff --git a/src/utils/file.hpp b/src/utils/file.hpp index f23ec768..19b28b82 100644 --- a/src/utils/file.hpp +++ b/src/utils/file.hpp @@ -35,6 +35,6 @@ namespace usdx public: virtual const std::streamsize get_filesize(void) = 0; }; -}; +} #endif diff --git a/src/utils/image.cpp b/src/utils/image.cpp index 10d4c13b..98a4ab8d 100644 --- a/src/utils/image.cpp +++ b/src/utils/image.cpp @@ -90,4 +90,4 @@ namespace usdx const SDL_Surface* s = get_surface(); return Dimension<int>(s->w, s->h); } -}; +} diff --git a/src/utils/image.hpp b/src/utils/image.hpp index 3ca973fd..cd9e179f 100644 --- a/src/utils/image.hpp +++ b/src/utils/image.hpp @@ -63,6 +63,6 @@ namespace usdx const SDL_Surface* get_surface(void) const; const Dimension<int> get_size(void) const; }; -}; +} #endif diff --git a/src/utils/locale_independent_float.cpp b/src/utils/locale_independent_float.cpp index 435ca404..90221b18 100644 --- a/src/utils/locale_independent_float.cpp +++ b/src/utils/locale_independent_float.cpp @@ -89,4 +89,4 @@ namespace usdx *float_value = str_value; return is; } -}; +} diff --git a/src/utils/locale_independent_float.hpp b/src/utils/locale_independent_float.hpp index 619b6801..47111a0f 100644 --- a/src/utils/locale_independent_float.hpp +++ b/src/utils/locale_independent_float.hpp @@ -50,6 +50,6 @@ namespace usdx std::istream& operator>> (std::istream& is, LocaleIndependentFloat& float_value); std::istream& operator>> (std::istream& is, LocaleIndependentFloat* float_value); -}; +} #endif diff --git a/src/utils/math.hpp b/src/utils/math.hpp index bd9e4217..2e568a5b 100644 --- a/src/utils/math.hpp +++ b/src/utils/math.hpp @@ -61,7 +61,7 @@ namespace usdx */ Math() {}; }; -}; +} #endif diff --git a/src/utils/point.hpp b/src/utils/point.hpp index f548160a..1ece9697 100644 --- a/src/utils/point.hpp +++ b/src/utils/point.hpp @@ -102,6 +102,6 @@ namespace usdx return result; } }; -}; +} #endif diff --git a/src/utils/point_3d.hpp b/src/utils/point_3d.hpp index 1687e6a8..ca4616b2 100644 --- a/src/utils/point_3d.hpp +++ b/src/utils/point_3d.hpp @@ -57,7 +57,6 @@ namespace usdx z = value; } }; - -}; +} #endif diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp index 33b9c763..9cca9eff 100644 --- a/src/utils/rectangle.hpp +++ b/src/utils/rectangle.hpp @@ -184,6 +184,6 @@ namespace usdx return true; } }; -}; +} #endif diff --git a/src/utils/text_file.cpp b/src/utils/text_file.cpp index beaa3d1c..4e813df8 100644 --- a/src/utils/text_file.cpp +++ b/src/utils/text_file.cpp @@ -64,4 +64,4 @@ namespace usdx return length; } -}; +} diff --git a/src/utils/text_file.hpp b/src/utils/text_file.hpp index 0f06b727..5426f2f2 100644 --- a/src/utils/text_file.hpp +++ b/src/utils/text_file.hpp @@ -44,6 +44,6 @@ namespace usdx boost::filesystem::ifstream &stream(void); const std::streamsize get_filesize(void); }; -}; +} #endif |