From 11e70ae6658f91558d03d346ec705efa8bac6800 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 9 Oct 2006 13:23:33 +0000 Subject: [PATCH] WinCE build fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/notebook.cpp | 2 ++ src/msw/wince/time.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 6f9d82c34c..9134dfc3e0 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -799,7 +799,9 @@ bool wxNotebook::InsertPage(size_t nPage, // so the first panel gets the correct themed background if ( m_pages.empty() ) { +#if wxUSE_UXTHEME UpdateBgBrush(); +#endif // wxUSE_UXTHEME } // succeeded: save the pointer to the page diff --git a/src/msw/wince/time.cpp b/src/msw/wince/time.cpp index 965502e15b..d53f58b69f 100644 --- a/src/msw/wince/time.cpp +++ b/src/msw/wince/time.cpp @@ -4,7 +4,7 @@ // Author: Marco Cavallini (MCK) - wx@koansoftware.com // Modified by: // Created: 31-08-2003 -// RCS-ID: +// RCS-ID: $Id$ // Copyright: (c) Marco Cavallini // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -510,7 +510,7 @@ size_t wcsftime(wchar_t *s, wxString formatStr(format); wxCharBuffer bufFormatStr(formatStr.mb_str()); - size_t sz = strftime(sBuf, maxsize/sizeof(wchar_t), bufFormatStr, t); + size_t sz = strftime(sBuf.data(), maxsize/sizeof(wchar_t), bufFormatStr, t); wxMB2WC(s, sBuf, maxsize); -- 2.47.2