]> git.lyx.org Git - features.git/commitdiff
remove indirect typedef
authorAndré Pönitz <poenitz@gmx.net>
Tue, 27 Nov 2007 19:56:19 +0000 (19:56 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 27 Nov 2007 19:56:19 +0000 (19:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21824 a592a061-630c-0410-9148-cb99ea01b6c8

src/debug.h

index 64aa1d207b9c15fb6282be267f3c9251980b9abc..f6a7f88cf38f8d4e474c68a7565b089f0e033496 100644 (file)
@@ -28,7 +28,7 @@ namespace lyx {
  *  compilable on older C++ compilators too, we use a struct instead.
  *  This is all the different debug levels that we have.
  */
-class lyx_debug_trait {
+class Debug {
 public:
        ///
        enum type {
@@ -110,14 +110,13 @@ public:
 
 
 inline
-void operator|=(lyx_debug_trait::type & d1, lyx_debug_trait::type d2)
+void operator|=(Debug::type & d1, Debug::type d2)
 {
-       d1 = static_cast<lyx_debug_trait::type>(d1 | d2);
+       d1 = static_cast<Debug::type>(d1 | d2);
 }
 
 
-typedef basic_debugstream<lyx_debug_trait> LyXErr;
-typedef LyXErr::debug Debug;
+typedef basic_debugstream<Debug> LyXErr;
 
 extern LyXErr lyxerr;