mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
From 04bd0c6900f6ef7e50f4e8bc9cabcbe05b7cf5ab Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Tue, 31 Jan 2017 19:38:14 +0100
|
|
Subject: gcc5 build fix
|
|
|
|
|
|
diff --git a/source/DragDropView.cpp b/source/DragDropView.cpp
|
|
index f4dd7ee..2bf5088 100644
|
|
--- a/source/DragDropView.cpp
|
|
+++ b/source/DragDropView.cpp
|
|
@@ -19,9 +19,9 @@ DragDropView::DragDropView(BRect frame) : BView(frame,"DragDropView",
|
|
|
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
|
|
|
- BRect frame = Bounds();
|
|
- frame.InsetBy(10,10);
|
|
- dragDropBox = new BBox(frame,"dragDropBox",B_FOLLOW_ALL);
|
|
+ BRect bounds = Bounds();
|
|
+ bounds.InsetBy(10,10);
|
|
+ dragDropBox = new BBox(bounds,"dragDropBox",B_FOLLOW_ALL);
|
|
dragDropBox->SetLabel(LABEL);
|
|
AddChild(dragDropBox);
|
|
}
|
|
diff --git a/source/driver.cpp b/source/driver.cpp
|
|
index ecfd4d6..d7f38ff 100644
|
|
--- a/source/driver.cpp
|
|
+++ b/source/driver.cpp
|
|
@@ -10,7 +10,7 @@
|
|
*
|
|
*/
|
|
|
|
-#include <iostream.h>
|
|
+#include <iostream>
|
|
#include <be/add-ons/tracker/TrackerAddOn.h>
|
|
#include <be/app/Application.h>
|
|
#include <be/app/Message.h>
|
|
@@ -59,11 +59,12 @@ process_refs(entry_ref dir_ref, BMessage* msg, void* reserved)
|
|
wait_for_thread(thread, &win_status);
|
|
}
|
|
|
|
-void
|
|
+int
|
|
main()
|
|
{
|
|
PRINT(("main()\n"));
|
|
new Application();
|
|
be_app->Run();
|
|
delete be_app;
|
|
+ return 0;
|
|
}
|
|
--
|
|
2.10.2
|
|
|