From cbab1556578ae39b1f00e0c4f6ca8016ac8124ac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 14 Jan 2010 18:02:26 +0000 Subject: [PATCH] No real changes, just fix a typo in comments and documentation. Use "surprising" instead of (common) "surprizing" misspelling. Closes #11627. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 2 +- interface/wx/scopedptr.h | 2 +- src/common/wincmn.cpp | 2 +- src/msw/listctrl.cpp | 2 +- src/msw/window.cpp | 2 +- src/osx/dialog_osx.cpp | 2 +- tests/strings/strings.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index ccb3fb687a..eb67a29a56 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -49,7 +49,7 @@ this global setting determines what should we do if the setting FOO requires BAR and BAR is not set: we can either silently unset FOO as well (do this if you're trying to build the smallest possible library) or give an - error and abort (default as leads to least surprizing behaviour) + error and abort (default as leads to least surprising behaviour) */ #define wxABORT_ON_CONFIG_ERROR diff --git a/interface/wx/scopedptr.h b/interface/wx/scopedptr.h index 53d1eb4181..73a5bfd43d 100644 --- a/interface/wx/scopedptr.h +++ b/interface/wx/scopedptr.h @@ -20,7 +20,7 @@ deleted when the smart pointer goes out of scope. This class is different from the @c std::auto_ptr<> in so far as it doesn't provide copy constructor nor assignment operator. This limits what you can do with it but is much less - surprizing than the "destructive copy" behaviour of the standard class. + surprising than the "destructive copy" behaviour of the standard class. @b Example: diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index b7a70c15e1..6b8a69a150 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1365,7 +1365,7 @@ wxColour wxWindowBase::GetBackgroundColour() const wxColour colBg = GetDefaultAttributes().colBg; // we must return some valid colour to avoid redoing this every time - // and also to avoid surprizing the applications written for older + // and also to avoid surprising the applications written for older // wxWidgets versions where GetBackgroundColour() always returned // something -- so give them something even if it doesn't make sense // for this window (e.g. it has a themed background) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 8efb534922..67ff3f717c 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -2454,7 +2454,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) // wrap to the beginning if necessary if ( currentPos == maxPos ) { - // somewhat surprizingly, LVFI_WRAP isn't set in + // somewhat surprisingly, LVFI_WRAP isn't set in // flags but we still should wrap currentPos = 0; } diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 1aab7e12dd..0ebb93aa59 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2338,7 +2338,7 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg) // combinations which are always processed) LONG lDlgCode = ::SendMessage(msg->hwnd, WM_GETDLGCODE, 0, 0); - // surprizingly, DLGC_WANTALLKEYS bit mask doesn't contain the + // surprisingly, DLGC_WANTALLKEYS bit mask doesn't contain the // DLGC_WANTTAB nor DLGC_WANTARROWS bits although, logically, // it, of course, implies them if ( lDlgCode & DLGC_WANTALLKEYS ) diff --git a/src/osx/dialog_osx.cpp b/src/osx/dialog_osx.cpp index fbc3ce67e2..c51035b969 100644 --- a/src/osx/dialog_osx.cpp +++ b/src/osx/dialog_osx.cpp @@ -138,7 +138,7 @@ int wxDialog::ShowModal() return GetReturnCode(); } -// NB: this function (surprizingly) may be called for both modal and modeless +// NB: this function (surprisingly) may be called for both modal and modeless // dialogs and should work for both of them void wxDialog::EndModal(int retCode) { diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 92dff3e994..bc8a02817c 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -567,7 +567,7 @@ static const struct ToLongData { wxT("--1"), 0, Number_Invalid }, { wxT("-1"), -1, Number_Signed | Number_Long }, - // this is surprizing but consistent with strtoul() behaviour + // this is surprising but consistent with strtoul() behaviour { wxT("-1"), ULONG_MAX, Number_Unsigned | Number_Long }, // this must overflow, even with 64 bit long -- 2.45.2