[10986] Fixed linking porblem for scripting library.

Visual Studio have known porblems with make public (in DLL access meaning)
for private fields accessed by public inline functions.
This commit is contained in:
VladimirMangos 2011-01-08 12:40:31 +03:00
parent 324c8c4cd2
commit 287229bfdb
3 changed files with 8 additions and 2 deletions

View file

@ -92,3 +92,9 @@ void barGoLink::step()
rec_pos = n;
}
}
// avoid use inline version because linking problems with private static field
void barGoLink::SetOutputState(bool on)
{
m_showOutput = on;
}

View file

@ -29,7 +29,7 @@ class MANGOS_DLL_SPEC barGoLink
public: // modifiers
void step( void );
static void SetOutputState(bool on) { m_showOutput = on; }
static void SetOutputState(bool on);
private:
static bool m_showOutput; // not recommended change with existed active bar
static char const * const empty;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10985"
#define REVISION_NR "10986"
#endif // __REVISION_NR_H__