diff options
author | lionel <lionel.perrin@gmail.com> | 2020-02-09 21:15:28 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2020-02-14 11:35:54 +0200 |
commit | 327be8dc28f2c9081e908171c3f67c336d24c0dc (patch) | |
tree | 45df290c609c6071547214d1bd46790f44521a76 /src | |
parent | 83038938714bc673b7e823e6b30b813f49a9b7d4 (diff) |
pavuapplication: fix compilation issue with g++ (Raspbian 4.9.2-10+deb8u2)
Fixes this compilation issue:
pavuapplication.cc: In function ‘int main(int, char**)’:
pavuapplication.cc:146:32: error: use of deleted function ‘PavuApplication::PavuApplication(PavuApplication&&)’
auto app = PavuApplication();
^
In file included from pavuapplication.cc:29:0:
pavuapplication.h:27:7: note: ‘PavuApplication::PavuApplication(PavuApplication&&)’ is implicitly deleted because the default definition would be ill-formed:
class PavuApplication : public Gtk::Application {
^
In file included from /usr/include/gtkmm-3.0/gtkmm/window.h:32:0,
from /usr/include/gtkmm-3.0/gtkmm/dialog.h:30,
from /usr/include/gtkmm-3.0/gtkmm/aboutdialog.h:33,
from /usr/include/gtkmm-3.0/gtkmm.h:99,
from pavucontrol.h:29,
from pavuapplication.h:24,
from pavuapplication.cc:29:
/usr/include/gtkmm-3.0/gtkmm/application.h:211:3: error: ‘Gtk::Application::Application(const Gtk::Application&)’ is private
Application(const Application&);
^
In file included from pavuapplication.cc:29:0:
pavuapplication.h:27:7: error: within this context
class PavuApplication : public Gtk::Application {
^
In file included from /usr/include/glibmm-2.4/glibmm/wrap.h:26:0,
from /usr/include/glibmm-2.4/glibmm/containerhandle_shared.h:26,
from /usr/include/glibmm-2.4/glibmm/arrayhandle.h:23,
from /usr/include/glibmm-2.4/glibmm.h:91,
from /usr/include/gtkmm-3.0/gtkmm.h:87,
from pavucontrol.h:29,
from pavuapplication.h:24,
from pavuapplication.cc:29:
/usr/include/glibmm-2.4/glibmm/objectbase.h:238:3: error: ‘Glib::ObjectBase::ObjectBase(const Glib::ObjectBase&)’ is private
ObjectBase(const ObjectBase&);
^
In file included from pavuapplication.cc:29:0:
pavuapplication.h:27:7: error: within this context
class PavuApplication : public Gtk::Application {
^
Diffstat (limited to 'src')
-rw-r--r-- | src/pavuapplication.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pavuapplication.cc b/src/pavuapplication.cc index e8520ec..2ff5739 100644 --- a/src/pavuapplication.cc +++ b/src/pavuapplication.cc @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) { signal(SIGPIPE, SIG_IGN); /* Create the application */ - auto app = PavuApplication(); + PavuApplication app; /* Add command-line options */ app.add_main_option_entry( |