build fixes for wxUSE_LOG==0 (modified patch 1450207)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f516d98637
commit
d0914b9d8d
@ -117,7 +117,7 @@ static inline wxUint32 CrackUint32(const char *m)
|
||||
//
|
||||
static wxFileOffset QuietSeek(wxInputStream& stream, wxFileOffset pos)
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
#if defined(__WXDEBUG__) && wxUSE_LOG
|
||||
wxLogLevel level = wxLog::GetLogLevel();
|
||||
wxLog::SetLogLevel(wxLOG_Debug - 1);
|
||||
wxFileOffset result = stream.SeekI(pos);
|
||||
|
@ -1685,7 +1685,7 @@ enum
|
||||
|
||||
#define wxDL_METHOD_LOAD( lib, name, success ) \
|
||||
pfn_ ## name = (name ## Type) lib.GetSymbol( wxT(#name), &success ); \
|
||||
if (!success) { wxLog::EnableLogging(bWasLoggingEnabled); return false; }
|
||||
if (!success) return false
|
||||
|
||||
|
||||
class WXDLLIMPEXP_MEDIA wxQuickTimeLibrary
|
||||
@ -1799,12 +1799,12 @@ bool wxQuickTimeLibrary::Initialize()
|
||||
{
|
||||
m_ok = false;
|
||||
|
||||
// Turn off the wxDynamicLibrary logging
|
||||
bool bWasLoggingEnabled = wxLog::EnableLogging(false);
|
||||
// Turn off the wxDynamicLibrary logging as we're prepared to handle the
|
||||
// errors
|
||||
wxLogNull nolog;
|
||||
|
||||
if (!m_dll.Load(wxT("qtmlClient.dll")))
|
||||
{
|
||||
wxLog::EnableLogging(bWasLoggingEnabled);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1864,7 +1864,6 @@ bool wxQuickTimeLibrary::Initialize()
|
||||
wxDL_METHOD_LOAD( m_dll, EndUpdate, m_ok );
|
||||
wxDL_METHOD_LOAD( m_dll, GetMoviesStickyError, m_ok );
|
||||
|
||||
wxLog::EnableLogging(bWasLoggingEnabled);
|
||||
m_ok = true;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user