[haiku-commits] Re: haiku: hrev52033 - src/preferences/backgrounds

  • From: David Murphy <murphman@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 28 Jun 2018 08:04:18 -0400

Looks like I broke this one. Will patch later today

Regards,
David Murphy

On Thu, Jun 28, 2018, 3:43 AM Niels Sascha Reedijk <niels.reedijk@xxxxxxxxx>
wrote:

Hi,

On Tue, Jun 26, 2018 at 2:56 AM, waddlesplash <waddlesplash@xxxxxxxxx>
wrote:
hrev52033 adds 1 changeset to branch 'master'
old head: abb59d7351c7ddb50c63c40430a82d94fa61917a
new head: 3d86db178eeee18e1e931115e0e59d061fef582b
(…)
+void
+BackgroundsView::_AddRecentFolder(BPath path, bool notifyApp = false)
+{
(…)
diff --git a/src/preferences/backgrounds/BackgroundsView.h
b/src/preferences/backgrounds/BackgroundsView.h
index 4df303f248..4acb9fce81 100644
--- a/src/preferences/backgrounds/BackgroundsView.h
+++ b/src/preferences/backgrounds/BackgroundsView.h
@@ -130,7 +130,8 @@ protected:
                        void                            _UpdatePreview();
                        void                            _UpdateButtons();
                        void                            _SetDesktop(bool
isDesktop);
-                       int32                           _AddPath(BPath
path);
+                       void
_AddRecentFolder(BPath path,
+
 bool notifyApp = false);

        static  int32                           _NotifyThread(void*
data);

This breaks the build for me.

See the error below:
C++
/tools-x86_64/objects/haiku/x86_64/release/preferences/backgrounds/BackgroundsView.o
/mnt/d/Haiku/haiku/src/preferences/backgrounds/BackgroundsView.cpp:1051:69:
error: default argument given for parameter 2 of 'void
BackgroundsView::_AddRecentFolder(BPath, bool)' [-fpermissive]
 BackgroundsView::_AddRecentFolder(BPath path, bool notifyApp = false)
                                                                     ^
In file included from
/mnt/d/Haiku/haiku/src/preferences/backgrounds/BackgroundsView.cpp:14:0:
/mnt/d/Haiku/haiku/src/preferences/backgrounds/BackgroundsView.h:133:12:
note: previous specification in 'void
BackgroundsView::_AddRecentFolder(BPath, bool)' here
    void    _AddRecentFolder(BPath path,

Regards,

Niels


Other related posts: