git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31466
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// remember the alt encoding for this charset -- or remember that
// we don't know it
// remember the alt encoding for this charset -- or remember that
// we don't know it
- long value = n == -1 ? wxFONTENCODING_UNKNOWN : (long)encoding;
+ long value = n == -1 ? (long)wxFONTENCODING_UNKNOWN : (long)encoding;
if ( !config->Write(charset, value) )
{
wxLogError(_("Failed to remember the encoding for the charset '%s'."), charset.c_str());
if ( !config->Write(charset, value) )
{
wxLogError(_("Failed to remember the encoding for the charset '%s'."), charset.c_str());
m_sashPosition,
m_splitMode == wxSPLIT_VERTICAL ? wxVERTICAL
: wxHORIZONTAL,
m_sashPosition,
m_splitMode == wxSPLIT_VERTICAL ? wxVERTICAL
: wxHORIZONTAL,
- m_isHot ? wxCONTROL_CURRENT : 0
+ m_isHot ? (int)wxCONTROL_CURRENT : 0
if (! window->IsShown())
window->Show();
if (! window->IsShown())
window->Show();
m_windowOne = window;
m_windowTwo = (wxWindow *) NULL;
DoSetSashPosition(0);
m_windowOne = window;
m_windowTwo = (wxWindow *) NULL;
DoSetSashPosition(0);
window1->Show();
if (! window2->IsShown())
window2->Show();
window1->Show();
if (! window2->IsShown())
window2->Show();
m_splitMode = mode;
m_windowOne = window1;
m_windowTwo = window2;
m_splitMode = mode;
m_windowOne = window1;
m_windowTwo = window2;
wxCHECK(newsize > m_pos, 0);
if (m_capacity < newsize) {
wxCHECK(newsize > m_pos, 0);
if (m_capacity < newsize) {
- size_t capacity = m_capacity ? m_capacity : INITIAL_SIZE;
+ size_t capacity = m_capacity ? m_capacity : (size_t)INITIAL_SIZE;
while (capacity < newsize) {
capacity <<= 1;
while (capacity < newsize) {
capacity <<= 1;
};
TestInputStream::TestInputStream(const TestInputStream& in)
};
TestInputStream::TestInputStream(const TestInputStream& in)
- : m_options(in.m_options),
+ : wxInputStream(),
+ m_options(in.m_options),
m_pos(in.m_pos),
m_size(in.m_size)
{
m_pos(in.m_pos),
m_size(in.m_size)
{
{
wxASSERT(m_factory.get() != NULL);
}
{
wxASSERT(m_factory.get() != NULL);
}
template <class Classes>
ArchiveTestCase<Classes>::~ArchiveTestCase()
{
template <class Classes>
ArchiveTestCase<Classes>::~ArchiveTestCase()
{
ExtractArchive(in);
else
ExtractArchive(in, m_unarchiver);
ExtractArchive(in);
else
ExtractArchive(in, m_unarchiver);
// check that all the test entries were found in the archive
CPPUNIT_ASSERT(m_testEntries.empty());
}
// check that all the test entries were found in the archive
CPPUNIT_ASSERT(m_testEntries.empty());
}
wxFileName fn(tmpdir.GetName());
fn.SetExt(_T("arc"));
wxString tmparc = fn.GetFullPath();
wxFileName fn(tmpdir.GetName());
fn.SetExt(_T("arc"));
wxString tmparc = fn.GetFullPath();
if (m_options & Stub)
in.SeekI(TestOutputStream::STUB_SIZE * 2);
if (m_options & Stub)
in.SeekI(TestOutputStream::STUB_SIZE * 2);
protected:
void OnCreateArchive(wxZipOutputStream& zip);
protected:
void OnCreateArchive(wxZipOutputStream& zip);
void OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal);
void OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal);
void OnCreateEntry(wxZipOutputStream& zip,
TestEntry& testEntry,
wxZipEntry *entry);
void OnCreateEntry(wxZipOutputStream& zip,
TestEntry& testEntry,
wxZipEntry *entry);
void OnEntryExtracted(wxZipEntry& entry,
const TestEntry& testEntry,
wxZipInputStream *arc);
void OnEntryExtracted(wxZipEntry& entry,
const TestEntry& testEntry,
wxZipInputStream *arc);
if ((options & PipeOut) && !j->empty())
continue;
#endif
if ((options & PipeOut) && !j->empty())
continue;
#endif
- string name = Description(_T("wxZip"), options,
+ string name = Description(_T("wxZip"), options,
genInterface != 0, *j, *i);
if (genInterface)
genInterface != 0, *j, *i);
if (genInterface)
{
wxString descr;
descr << m_id << _T(" ");
{
wxString descr;
descr << m_id << _T(" ");
if (genericInterface)
descr << _T("wxArchive (") << type << _T(")");
else
if (genericInterface)
descr << _T("wxArchive (") << type << _T(")");
else
descr << _T(" ") << archiver.BeforeFirst(_T(' '));
if (!unarchiver.empty())
descr << _T(" ") << unarchiver.BeforeFirst(_T(' '));
descr << _T(" ") << archiver.BeforeFirst(_T(' '));
if (!unarchiver.empty())
descr << _T(" ") << unarchiver.BeforeFirst(_T(' '));
wxString optstr;
if ((options & PipeIn) != 0)
wxString optstr;
if ((options & PipeIn) != 0)