Kaydet (Commit) 0bfb7ed1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid downcast

Change-Id: I0170c1ecd7f6f037640eaa26f5477fdf4852c54f
üst 7dbf8384
...@@ -112,8 +112,9 @@ SAL_DLLPUBLIC_EXPORT vcl::Window* CreateWindow( VCLXWindow** ppNewComp, const :: ...@@ -112,8 +112,9 @@ SAL_DLLPUBLIC_EXPORT vcl::Window* CreateWindow( VCLXWindow** ppNewComp, const ::
static_cast<CalendarField*>(pWindow)->EnableToday(); static_cast<CalendarField*>(pWindow)->EnableToday();
static_cast<CalendarField*>(pWindow)->EnableNone(); static_cast<CalendarField*>(pWindow)->EnableNone();
static_cast<CalendarField*>(pWindow)->EnableEmptyFieldValue( true ); static_cast<CalendarField*>(pWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new SVTXDateField; SVTXDateField * newComp = new SVTXDateField;
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<DateField*>(pWindow) ); *ppNewComp = newComp;
newComp->SetFormatter( (FormatterBase*)static_cast<DateField*>(pWindow) );
} }
else if (aServiceName.equalsIgnoreAsciiCase("roadmap") ) else if (aServiceName.equalsIgnoreAsciiCase("roadmap") )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment