CID 1555 : Wrong cast type
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38135 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -203,7 +203,7 @@ PrinterListView::_AddPrinter(BDirectory& printer, bool calculateLayout)
|
|||||||
if (info.GetType(buffer) == B_OK
|
if (info.GetType(buffer) == B_OK
|
||||||
&& strcmp(buffer, PSRV_PRINTER_FILETYPE) == 0) {
|
&& strcmp(buffer, PSRV_PRINTER_FILETYPE) == 0) {
|
||||||
// Yes, it is a printer definition node
|
// Yes, it is a printer definition node
|
||||||
AddItem(new PrinterItem(dynamic_cast<PrintersWindow*>(Window()),
|
AddItem(new PrinterItem(static_cast<PrintersWindow*>(Window()),
|
||||||
printer, fLayoutData));
|
printer, fLayoutData));
|
||||||
if (calculateLayout)
|
if (calculateLayout)
|
||||||
_LayoutPrinterItems();
|
_LayoutPrinterItems();
|
||||||
@@ -219,7 +219,7 @@ PrinterListView::_LayoutPrinterItems()
|
|||||||
float& rightColumnMaximumWidth = fLayoutData.fRightColumnMaximumWidth;
|
float& rightColumnMaximumWidth = fLayoutData.fRightColumnMaximumWidth;
|
||||||
|
|
||||||
for (int32 i = 0; i < CountItems(); i ++) {
|
for (int32 i = 0; i < CountItems(); i ++) {
|
||||||
PrinterItem* item = dynamic_cast<PrinterItem*>(ItemAt(i));
|
PrinterItem* item = static_cast<PrinterItem*>(ItemAt(i));
|
||||||
|
|
||||||
float leftColumnWidth = 0;
|
float leftColumnWidth = 0;
|
||||||
float rightColumnWidth = 0;
|
float rightColumnWidth = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user