[Libreoffice-commits] core.git: include/vcl vcl/source

Caolán McNamara caolanm at redhat.com
Sun Apr 26 06:59:01 PDT 2015


 include/vcl/salnativewidgets.hxx     |    1 +
 vcl/source/outdev/nativecontrols.cxx |    6 ++++++
 2 files changed, 7 insertions(+)

New commits:
commit 62be02711341f3a05b700d4fc10794893f54521a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Apr 26 14:53:11 2015 +0100

    add EditBoxValue::clone
    
    Change-Id: I03e74d766b85ddd61baa1dbf0f28a663931e7ec6

diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index 1bee876..4485149 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -487,6 +487,7 @@ public:
         : ImplControlValue(CTRL_EDITBOX, BUTTONVALUE_DONTKNOW, nTextHeight)
     {
     }
+    virtual EditBoxValue* clone() const SAL_OVERRIDE;
 };
 
 #endif
diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx
index 7a8e70f..ce7d9b5 100644
--- a/vcl/source/outdev/nativecontrols.cxx
+++ b/vcl/source/outdev/nativecontrols.cxx
@@ -150,6 +150,12 @@ PushButtonValue* PushButtonValue::clone() const
     return new PushButtonValue( *this );
 }
 
+EditBoxValue* EditBoxValue::clone() const
+{
+    assert( typeid( const EditBoxValue ) == typeid( *this ));
+    return new EditBoxValue( *this );
+}
+
 // These functions are mainly passthrough functions that allow access to
 // the SalFrame behind a Window object for native widget rendering purposes.
 


More information about the Libreoffice-commits mailing list