Add namespace qualifier to WarningIn, FatalErrorIn, etc. macros.

- Previously had just 'Warning' instead of '::Foam::Warning', which
  meant that an identically named class method would inadvertently be
  used - resulting in a compile failure.
This commit is contained in:
Mark Olesen
2009-12-16 08:55:04 +01:00
parent a5217d7be3
commit e434b51914
6 changed files with 145 additions and 73 deletions

View File

@ -36,10 +36,6 @@ Description
#include "error.H"
#include "wchar.H"
// avoid confusion about which Warning is meant
#undef WarningIn
#define WarningIn(fn) Foam::Warning(fn, __FILE__, __LINE__)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View File

@ -66,7 +66,7 @@ class calcEntry
public:
//- Runtime type information
ClassName("test");
ClassName("calc");
// Member Functions