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 ::
static_cast<CalendarField*>(pWindow)->EnableToday();
static_cast<CalendarField*>(pWindow)->EnableNone();
static_cast<CalendarField*>(pWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new SVTXDateField;
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<DateField*>(pWindow) );
SVTXDateField * newComp = new SVTXDateField;
*ppNewComp = newComp;
newComp->SetFormatter( (FormatterBase*)static_cast<DateField*>(pWindow) );
}
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