summaryrefslogtreecommitdiff
path: root/include/toolkit/awt/vclxaccessiblecomponent.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/toolkit/awt/vclxaccessiblecomponent.hxx')
-rw-r--r--include/toolkit/awt/vclxaccessiblecomponent.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/toolkit/awt/vclxaccessiblecomponent.hxx b/include/toolkit/awt/vclxaccessiblecomponent.hxx
index b9cf5ec6bacc..bacaa941e96a 100644
--- a/include/toolkit/awt/vclxaccessiblecomponent.hxx
+++ b/include/toolkit/awt/vclxaccessiblecomponent.hxx
@@ -72,11 +72,11 @@ public:
virtual ~VCLXAccessibleComponent() override;
VCLXWindow* GetVCLXWindow() const;
- VclPtr<vcl::Window> GetWindow() const;
- template< class derived_type > VclPtr< derived_type > GetAs() const {
- return VclPtr< derived_type >( static_cast< derived_type * >( GetWindow().get() ) ); }
- template< class derived_type > VclPtr< derived_type > GetAsDynamic() const {
- return VclPtr< derived_type >( dynamic_cast< derived_type * >( GetWindow().get() ) ); }
+ vcl::Window* GetWindow() const;
+ template< class derived_type > derived_type* GetAs() const {
+ return static_cast< derived_type * >( GetWindow() ); }
+ template< class derived_type > derived_type* GetAsDynamic() const {
+ return dynamic_cast< derived_type * >( GetWindow() ); }
virtual void SAL_CALL disposing() override;