git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10481
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
static int debugLevel;
static bool debugOn;
static int debugLevel;
static bool debugOn;
- static int m_balign; // byte alignment
- static int m_balignmask; // mask for performing byte alignment
+ static int m_balign; // byte alignment
+ static int m_balignmask; // mask for performing byte alignment
public:
// Set a checkpoint to dump only the memory from
// a given point
public:
// Set a checkpoint to dump only the memory from
// a given point
static bool HasStream(void) { return (m_debugStream != NULL); };
static wxSTD ostream& GetStream(void) { return *m_debugStream; }
static wxSTD streambuf *GetStreamBuf(void) { return m_streamBuf; }
static bool HasStream(void) { return (m_debugStream != NULL); };
static wxSTD ostream& GetStream(void) { return *m_debugStream; }
static wxSTD streambuf *GetStreamBuf(void) { return m_streamBuf; }
- static void SetStream(wxSTD ostream *stream, streambuf *buf = NULL);
+ static void SetStream(wxSTD ostream *stream, wxSTD streambuf *buf = NULL);
static bool SetFile(const wxString& file);
static bool SetStandardError(void);
static bool SetFile(const wxString& file);
static bool SetStandardError(void);
* between SetFile and SetStream.
*/
* between SetFile and SetStream.
*/
-void wxDebugContext::SetStream(wxSTD ostream *str, streambuf *buf)
+void wxDebugContext::SetStream(wxSTD ostream *str, wxSTD streambuf *buf)
#ifndef __WATCOMC__
if (m_streamBuf)
{
#ifndef __WATCOMC__
if (m_streamBuf)
{
- streambuf* oldBuf = m_streamBuf;
+ wxSTD streambuf* oldBuf = m_streamBuf;
m_streamBuf = NULL;
delete oldBuf;
}
m_streamBuf = NULL;
delete oldBuf;
}
{
// Added by Terry Farnham <TJRT@pacbell.net> to replace
// slow GetPadding call.
{
// Added by Terry Farnham <TJRT@pacbell.net> to replace
// slow GetPadding call.
- padb = size & m_balignmask;
- if(padb)
- return(size + m_balign - padb);
- else
- return(size);
+ padb = size & m_balignmask;
+ if(padb)
+ return(size + m_balign - padb);
+ else
+ return(size);