Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,7 +83,7 @@ wxBackingFileImpl::wxBackingFileImpl(wxInputStream *stream,
|
|||||||
wxFileOffset len = m_stream->GetLength();
|
wxFileOffset len = m_stream->GetLength();
|
||||||
|
|
||||||
if (len >= 0 && len + size_t(1) < m_bufsize)
|
if (len >= 0 && len + size_t(1) < m_bufsize)
|
||||||
m_bufsize = len + 1;
|
m_bufsize = size_t(len + 1);
|
||||||
|
|
||||||
if (m_bufsize)
|
if (m_bufsize)
|
||||||
m_buf = new char[m_bufsize];
|
m_buf = new char[m_bufsize];
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: fs_filter.cpp
|
// Name: src/common/fs_filter.cpp
|
||||||
// Purpose: wxFilter file system handler
|
// Purpose: wxFilter file system handler
|
||||||
// Author: Mike Wetherell
|
// Author: Mike Wetherell
|
||||||
// Copyright: (c) 2006 Mike Wetherell
|
// Copyright: (c) 2006 Mike Wetherell
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_FILESYSTEM
|
#if wxUSE_FILESYSTEM
|
||||||
@@ -41,7 +41,7 @@ wxFSFile* wxFilterFSHandler::OpenFile(
|
|||||||
wxString right = GetRightLocation(location);
|
wxString right = GetRightLocation(location);
|
||||||
if (!right.empty())
|
if (!right.empty())
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
wxString protocol = GetProtocol(location);
|
wxString protocol = GetProtocol(location);
|
||||||
const wxFilterClassFactory *factory = wxFilterClassFactory::Find(protocol);
|
const wxFilterClassFactory *factory = wxFilterClassFactory::Find(protocol);
|
||||||
if (!factory)
|
if (!factory)
|
||||||
@@ -59,8 +59,8 @@ wxFSFile* wxFilterFSHandler::OpenFile(
|
|||||||
wxInputStreamPtr stream(factory->NewStream(leftStream.get()));
|
wxInputStreamPtr stream(factory->NewStream(leftStream.get()));
|
||||||
|
|
||||||
// The way compressed streams are supposed to be served is e.g.:
|
// The way compressed streams are supposed to be served is e.g.:
|
||||||
// Content-type: application/postscript
|
// Content-type: application/postscript
|
||||||
// Content-encoding: gzip
|
// Content-encoding: gzip
|
||||||
// So the mime type should be just the mime type of the lhs. However check
|
// So the mime type should be just the mime type of the lhs. However check
|
||||||
// whether the mime type is that of this compression format (e.g.
|
// whether the mime type is that of this compression format (e.g.
|
||||||
// application/gzip). If so pop any extension and try GetMimeTypeFromExt,
|
// application/gzip). If so pop any extension and try GetMimeTypeFromExt,
|
||||||
@@ -79,7 +79,7 @@ wxFSFile* wxFilterFSHandler::OpenFile(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString wxFilterFSHandler::FindFirst(const wxString& spec, int flags)
|
wxString wxFilterFSHandler::FindFirst(const wxString& WXUNUSED(spec), int WXUNUSED(flags))
|
||||||
{
|
{
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user