X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2aab96f58d53e83313cc1d619dde1c00f6ccaa80..591805e0b85d26b6256617710277b26065a2b767:/src/common/preferencescmn.cpp diff --git a/src/common/preferencescmn.cpp b/src/common/preferencescmn.cpp index 899dc36d2d..9649494332 100644 --- a/src/common/preferencescmn.cpp +++ b/src/common/preferencescmn.cpp @@ -3,7 +3,6 @@ // Purpose: wxPreferencesEditor implementation common to all platforms. // Author: Vaclav Slavik // Created: 2013-02-19 -// RCS-ID: $Id$ // Copyright: (c) 2013 Vaclav Slavik // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -23,6 +22,8 @@ #pragma hdrstop #endif +#if wxUSE_PREFERENCES_EDITOR + #include "wx/private/preferences.h" #include "wx/intl.h" @@ -42,8 +43,8 @@ wxString wxStockPreferencesPage::GetName() const return wxString(); // silence compiler warning } -wxPreferencesEditor::wxPreferencesEditor() - : m_impl(wxPreferencesEditorImpl::Create()) +wxPreferencesEditor::wxPreferencesEditor(const wxString& title) + : m_impl(wxPreferencesEditorImpl::Create(title)) { } @@ -67,3 +68,5 @@ void wxPreferencesEditor::Dismiss() { m_impl->Dismiss(); } + +#endif // wxUSE_PREFERENCES_EDITOR