From 9bb1652ae4cc4e5d6e449ee6e931a08b3cf20f04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 29 Nov 2007 07:32:39 +0000 Subject: [PATCH] re-enable "safety hack" git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21854 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/Path.cpp | 4 ++-- src/support/Path.h | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/support/Path.cpp b/src/support/Path.cpp index 890040580b..147efd07e5 100644 --- a/src/support/Path.cpp +++ b/src/support/Path.cpp @@ -10,10 +10,10 @@ #include -// Needed to prevent the definition of the unnamed_Path macro +// Needed to prevent the definition of the unnamed_PathChanger macro // in the header file. -#define PATH_C +#define PATHCHANGER_C #include "support/Path.h" #include "support/lyxlib.h" diff --git a/src/support/Path.h b/src/support/Path.h index 31c63f686b..4c3d6ba1e8 100644 --- a/src/support/Path.h +++ b/src/support/Path.h @@ -53,14 +53,12 @@ private: }; // To avoid the wrong usage: -// Path("/tmp"); // wrong -// Path p("/tmp"); // right +// PathChanger("/tmp"); // wrong +// PathChanger p("/tmp"); // right // we add this macro: -/// -// With boost 1.34 this is not usable anymore -//#ifndef PATH_C -//#define Path(x) unnamed_Path; -//#endif +#ifndef PATHCHANGER_C +#define PathChanger(x) unnamed_PathChanger; +#endif // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal } // namespace support -- 2.39.5