Commit Graph

142 Commits

Author SHA1 Message Date
Vadim Zeitlin
5c33522fca replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Francesco Montorsi
303c6f20d2 make IsKindOf() taking a const wxClassInfo* instead of a wxClassInfo*, just like the homonym method in wxClassInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 14:54:40 +00:00
Francesco Montorsi
53a2db124c substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:06:00 +00:00
Robert Roebling
a60b0ddc20 Added the conversion to unspecfied_bool to all smart pointers, added T& operator* to wxObjectDataPtr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-08 22:02:12 +00:00
Robert Roebling
e39d30c05b Correct wxObjectDataPtr<> assignment from *T to not increase the ref count
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 15:12:46 +00:00
Václav Slavík
b5dbe15d0b added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Václav Slavík
c1e10a22b6 use wxString, not wxChar*, in wxCreateDynamicObject() and wxClassInfo::FindClass()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-31 13:08:44 +00:00
Robin Dunn
a55e4e4260 Fix DLL compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 19:04:56 +00:00
Mattia Barbon
644cb5372c Make wxClassInfo attributes private. Replace
direct access to sm_classTable with a (const) iterator
interface.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 11:43:37 +00:00
Václav Slavík
1125dc3f5c GetBaseByName doesn't exist anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-02 05:33:37 +00:00
Vadim Zeitlin
c1dc9f8394 removed WXWIN_COMPATIBILITY_2_4 from common and wxMSW files (patch 1675546)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 11:35:04 +00:00
Robert Roebling
4a11340a1c [1660792 ] wxObject::Dec/IncRef and wxObjectDataPtr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-17 09:16:35 +00:00
Vadim Zeitlin
a3ab1c1801 renamed IsRefTo() to IsSameAs() (do complain if this is not more clear) and
changed its signature to take a const reference instead of a pointer which
simplifies the code and makes it safer as well


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 22:03:53 +00:00
Vadim Zeitlin
4e124582c4 no changes, just wrap long lines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:30:53 +00:00
Vadim Zeitlin
55ccdb93e4 COW cleanup patch (1583966):
1. perform deep comparison for the classes for which it makes sense in the
   ports where this wasn't done yet
2. remove (shallow) comparison operators for the classes for which it does
   not make sense (such as wxBitmap)
3. makes wxBitmap use COW on all ports
4. adds wxObject::IsRefTo()
5. centralizes and improves COW docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:26:48 +00:00
Vadim Zeitlin
70bf61807a define WXDEBUG_NEW to use special VC++-specific new version too (closes 1386286)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-24 23:19:12 +00:00
Paul Cornett
93c5f7558e add public wxObject::UnShare
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-17 03:18:28 +00:00
Vadim Zeitlin
d3c7fc996a mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Julian Smart
0c06c9839c Applied patch [ 1211299 ] Minor mod to wxClassInfo to improve usability
David Falkinder


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 13:06:05 +00:00
Vadim Zeitlin
85149efad7 removed wxClassInfo::CleanUp() as it breaks wxEntry reentrancy: once the sm_classTable is destroyed it's not going to be recreated again; instead leave last wxClassInfo::Unregister() call do this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 00:54:00 +00:00
Vadim Zeitlin
6021b8f80b we don't need reserved virtual functions on HEAD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 16:04:33 +00:00
Vadim Zeitlin
f8855e4725 great copy ctor/assignment operators cleanup by Paul Cornett (patch 1307665)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 00:51:23 +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
66e9a9f0ae [1231183] 'cleanup: mismatched indentation' and other cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 16:56:26 +00:00
Robert Roebling
4871079576 Revert Ron's removal of the reserved functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-26 15:46:12 +00:00
Ron Lee
847379b00c Put a humane end to the pathetic flailing over whether this can
work or not.  It obviously never can if you understand the rules
for binary compatibility of a userspace library and the mechanisms
to manage it -- no matter how clever we get in the future.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-24 16:44:20 +00:00
Václav Slavík
96d38c7e0d rolled back exceptions handling patch, it relied on incorrect assumption about vtables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-21 09:56:18 +00:00
Václav Slavík
924b84ab94 changed exceptions handling to work under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-20 08:20:50 +00:00
Julian Smart
2b199a38dc Applied patch [ 1196679 ] wxIMPLEMENT_CLASS_COMMON2 bad parameter count compil fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 14:50:13 +00:00
Vadim Zeitlin
ed31dd079a added more reserved functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-17 16:50:09 +00:00
Włodzimierz Skiba
e755eb67b6 Correction in comment in closing #endif.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-14 15:11:20 +00:00
Vadim Zeitlin
ef0aea5ad4 made wxStaticCast more backwards compatible by allowing it to cast away const as well (in release build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 15:23:49 +00:00
Vadim Zeitlin
73fbb031f5 use static_cast<> for wxStaticCast; updated comment in front of wxDynamicCast()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 13:09:25 +00:00
Vadim Zeitlin
14ca93a0d9 two changes and some cleanup:
1. DECLARE_ABSTRACT_CLASS() shouldn't declare wxCreateObject() (which is not
   defined by IMPLEMENT_ABSTRACT_CLASS())
2. don't make GetClassInfo() declaration inside DECLARE_CLASS inline in an
   attempt to fix linking problems with HP-UX compiler


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 01:52:19 +00:00
Vadim Zeitlin
aa1f2541b6 removed all occurences of (obsolete) wxUSE_DYNAMIC_CLASSES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-15 17:54:04 +00:00
Vadim Zeitlin
9a84ce0d31 fixed IMPLEMENT_DYNAMIC_CLASS2 macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-02 22:52:22 +00:00
Robert Roebling
70dfc4ed70 Compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 19:15:46 +00:00
Julian Smart
c86abb56d5 Include "wx/msw/msvcrt.h" for better leak reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 14:46:16 +00:00
Julian Smart
f525dc35f4 Temp fix for VC6/XTI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 16:21:47 +00:00
Włodzimierz Skiba
7e548f6b13 Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-20 11:31:49 +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
Vadim Zeitlin
5232d996cd use wx_static_cast() inside wxDynamicCast to catch impossible casts at compile-time instead of run-time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-16 10:57:06 +00:00
Vadim Zeitlin
f29fe16932 added and documented wx_const/static_cast<>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-16 10:30:07 +00:00
Vadim Zeitlin
0613b80c17 added wxStaticCast, moved wxConstCast from wx/object.h to wx/defs.h for consistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-10 22:11:14 +00:00
Julian Smart
e32d483606 Applied patch [ 857446 ] wxStaticCast evaluates argument twice
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 10:54:38 +00:00
Vadim Zeitlin
45bbbc5430 use #if WXWIN_COMPAT and not #ifdef (patch 826160)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-18 23:22:11 +00:00
Vadim Zeitlin
c0db962623 made wxRTTI macros namespace-friendly (patch 799434)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-16 11:33:46 +00:00
Stefan Csomor
8f2b1cfd39 log changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 16:18:07 +00:00