Vadim Zeitlin
d4d8988c72
made wxList methods return compatibility_iterator instead of Node * to further reduce differences between wxUSE_STL==0 and 1 cases
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-22 19:14:28 +00:00
Vadim Zeitlin
0cc70962a1
Made wxList::compatibility_iterator a class in wxUSE_STL == 0 case too instead
...
of a simple typedef to "Node *" to be able to initialize it with NULL in ctor
which makes the behaviour of the code with and without wxUSE_STL the same.
The price to pay is that the code like
wxList:compatibility_iterator ci;
ci = cond ? list->GetFirst() : wxList::compatibility_iterator();
doesn't compile any more and has to be replaced with (more clear anyhow)
wxList:compatibility_iterator ci;
if ( cond )
ci = list->GetFirst();
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 14:05:11 +00:00
Vadim Zeitlin
5d9ef6deec
return NULL (and not invalid) iterator from compatibility_iterator::GetPrevious() when we're at the start of the list (see patch 1445506)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 13:17:31 +00:00
Vadim Zeitlin
b4affacc10
added assert to verify that operands are initialized in compatibility_iterator::operator==()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 13:14:19 +00:00
Vadim Zeitlin
0b6cf20588
reuse operator bool() check in compatibility_iterator::IndexOf() instead of rewriting it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 13:00:19 +00:00
Mattia Barbon
1794103bab
DeleteFunction argument should be non-const since it
...
is deleted inside the function.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 18:26:55 +00:00
Julian Smart
48ba35c357
Two corrections to const fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 08:34:03 +00:00
Julian Smart
2ad75f457d
Applied patch [ 1392288 ] FIX: Bug 1306671 Build Error in list.h with VC2005
...
By Kevin J Bluck, with mods by JS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 19:02:39 +00:00
Włodzimierz Skiba
c0089c96ec
Minor cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-15 07:40:12 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
48f7ffbe93
First part of '[ 1216148 ] cleanup: unused variables and declarations'.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 19:01:45 +00:00
Włodzimierz Skiba
5a8231ef46
VC++ 1.5 no more supported.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 12:36:39 +00:00
Vadim Zeitlin
60d8e88654
iterator methods fixes (patch 1164808)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:19:13 +00:00
Mattia Barbon
543ab300e7
Remove wrong clasing bracket.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 21:55:29 +00:00
Mattia Barbon
168da56b8f
Blind fix for VC6 compilation when wxUSE_STL == 1.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 21:52:57 +00:00
Mattia Barbon
30bda36c48
Fixed compilation for GCC 3.4 when wxUSE_STL == 1.
...
Should be compatible with VC6.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-13 17:08:43 +00:00
Vadim Zeitlin
831c288955
compilation fix for VC6 (patch 1158433)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 22:12:46 +00:00
Mattia Barbon
f455ffb2da
Use the correct WXDLLIMPEXT declaration for
...
wxStringListBase.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-05 16:06:02 +00:00
Vadim Zeitlin
ed1288c1d5
better compatibility with old wxList in wxUSE_STL==1 mode (patch 1075432)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-27 15:40:39 +00:00
Włodzimierz Skiba
16cba29d3a
Warning fixes for MinGW.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 18:48:22 +00:00
Włodzimierz Skiba
f644b28c11
Source cleaning: whitespaces, -1/wxID_ANY/wxNOT_FOUND, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 17:57:44 +00:00
Vadim Zeitlin
00e092707b
fixed wxList copy ctor (patch 985473)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:59:23 +00:00
Václav Slavík
446e5259d7
DLL export fixes (patch 991760)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-15 20:51:44 +00:00
Vadim Zeitlin
eeb9e3d08f
removed spurious semicolon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 11:43:01 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Dimitri Schoolwerth
22d080f35b
improved const-ness of find/Find functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 11:05:13 +00:00
Mattia Barbon
0bd4d463e6
Don't declare copystring if WXWIN_COMPATIBILITY_2_4==0
...
(like in include/wx/utils.h).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 20:57:17 +00:00
Julian Smart
d56cc7b1bc
Correcting typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 19:27:52 +00:00
Julian Smart
5751dd32c7
Fix to remove CW/Mac warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 12:37:36 +00:00
Václav Slavík
1202890513
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Václav Slavík
45c1de352d
renamed to WX_DECLARE_LIST_WITH_DECL for consistency if wxUSE_STL=0, too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 15:54:07 +00:00
Václav Slavík
f794be6afe
renamed to WX_DECLARE_LIST_WITH_DECL for consistency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 15:46:44 +00:00
Mattia Barbon
728c62b66d
Fixed wrong wxList<T>::compatibility_iterator::GetPrevious.
...
Added operator== and != for compatibility_iterator.
Removed deprecation warning of wxStringList: until wxPathList
is changed not to use wxStringList, having the warning is just
annoying.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-24 19:33:59 +00:00
Vadim Zeitlin
cd989b24ae
suppress warning about not being able to generate copy ctor/operator=()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 23:16:57 +00:00
Mattia Barbon
69b9f4cca4
wxUSE_STL=1 compilation fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 22:42:12 +00:00
Vadim Zeitlin
137b730319
compatibiltiy functions should be inline, we don't want to take space hit for using them nor speed hit for the user code!
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 19:56:46 +00:00
Vadim Zeitlin
6de4403884
define a special PTR version of LIST macros which should be used if you want operator->()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 19:52:00 +00:00
Václav Slavík
ff98bd681d
dll compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 15:38:19 +00:00
Mattia Barbon
335991afa5
Move #inclusion of wx/msw/winundef.h for MinGW to afterstd.h.
...
Fix WX_DEFINE_TYPEARRAY assert to refer to base array's elemnt type
rather than to void*.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-13 20:07:45 +00:00
Mattia Barbon
fd82f4e6e9
Readd wxStringList::Add when wxUSE_STL=1, for compatibility with
...
wxUSE_STL=0. Fixed wxPathList double-free reported by Devid Elliot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-12 20:34:34 +00:00
Julian Smart
5e9670446a
Further WinCE mods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:15:59 +00:00
Mattia Barbon
375894195f
More MSVC fixes .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 22:24:26 +00:00
Mattia Barbon
df5168c427
Added --use-stl to cnfigure, wxUSE_STL to setup0.h
...
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
Made wxBase compile when wxUSE_STL=1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Mattia Barbon
f526f7526b
Quick and dirty fix for building with COMPATIBILITY_2_4 off.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 17:11:19 +00:00
Vadim Zeitlin
bddd7a8d89
renamed WXDLLEXPORT_BASE/CORE to WXDLLIMPEXP_BASE/CORE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:59:24 +00:00
Vadim Zeitlin
886dd7d28e
fixes needed for separate DLL build to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:41:23 +00:00
Julian Smart
371a5b4e62
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 10:34:04 +00:00
Ron Lee
b1d4dd7add
Split this out from other changes to keep things sane..
...
wxDeprecated KeyCode.
wxDeprecated old wxList compat methods.
Replaced a large number of them in the gtk build already, but there are
still plenty more so feel free to help nuke them as you find them.
s/^I/ / and s/TRUE/true/ etc. a couple of these too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-13 05:17:41 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00