]> git.tdb.fi Git - libs/gui.git/commitdiff
Force c'tors and d'tors of classes with external symbols into the library
authorMikko Rasa <tdb@tdb.fi>
Mon, 24 Jun 2013 10:20:00 +0000 (13:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 24 Jun 2013 10:20:00 +0000 (13:20 +0300)
source/input/binarycontrol.cpp
source/input/binarycontrol.h
source/input/control.cpp
source/input/control.h
source/input/device.cpp
source/input/device.h
source/input/keyboard.cpp
source/input/keyboard.h

index 57c63427839bda9ac6c1d41f5c234e100790d87d..b0148ccf5332f023d22c1a9dfe436ba94fe93783 100644 (file)
@@ -21,6 +21,9 @@ BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i):
        threshold(0.5)
 { }
 
+BinaryControl::~BinaryControl()
+{ }
+
 void BinaryControl::set_threshold(float t)
 {
        threshold = t;
index 8a156f78981fc5d2c60970305237f682af1e979c..64e4ab17be4ca1698e78c880a164f299d61b89e3 100644 (file)
@@ -25,6 +25,7 @@ public:
        BinaryControl();
        BinaryControl(const ControlSource &);
        BinaryControl(Device &, ControlSrcType, unsigned);
+       virtual ~BinaryControl();
 
        /** Sets the threshold between states for axis sources.  No effect on button
        sources */
index 18c2ffd62a1d055394e3a2df1d5929d9dd1f227a..50601013acacc985ab256c018693a7f4dc6317ae 100644 (file)
@@ -51,6 +51,9 @@ Control::Control(Device &d, ControlSrcType t, unsigned i):
        connect_signals();
 }
 
+Control::~Control()
+{ }
+
 void Control::capture(Device &d)
 {
        notify_callbacks();
index 924bbeca39024f3c0ed615c17d986cffa7ce7eb5..e5679639cf49eabefc9429c1fc83ab32618c60d8 100644 (file)
@@ -55,7 +55,7 @@ protected:
        Control(const ControlSource &);
        Control(Device &, ControlSrcType, unsigned);
 public:
-       virtual ~Control() { }
+       virtual ~Control();
 
        void capture(Device &);
        void cancel_capture();
index 194e999e935c25c8a38a1e41cf53a9b680a42d48..10f8d0cf16ff1346d57918d1bd6fbe828b58c08e 100644 (file)
@@ -4,6 +4,12 @@
 namespace Msp {
 namespace Input {
 
+Device::Device()
+{ }
+
+Device::~Device()
+{ }
+
 bool Device::get_button_state(unsigned btn) const
 {
        if(btn>buttons.size())
index 6a436ab2d8a62f0318b893aefca0ac0b068592b1..e356bea86a4639cc5280d0a974eb6af3a8f005ab 100644 (file)
@@ -42,9 +42,10 @@ protected:
        std::vector<char> buttons;
        std::vector<float> axes;
 
-       Device() { }
+       Device();
 public:
-       virtual ~Device() { }
+       virtual ~Device();
+
        const std::string &get_name() const { return name; }
        bool get_button_state(unsigned) const;
        float get_axis_value(unsigned) const;
index 159e5ee41b9e304adfb777e649251aa2c274887c..0a690d1b686a569a790d187224a3fb4e725e93ec 100644 (file)
@@ -15,5 +15,8 @@ Keyboard::Keyboard(Graphics::Window &w):
        window.signal_input_event.connect(sigc::mem_fun(this, &Keyboard::input_event));
 }
 
+Keyboard::~Keyboard()
+{ }
+
 } // namespace Input
 } // namespace Msp
index babdf9ac97dfcc283877b19e00f2ec26e7261652..8cd83f221c3cba317588ec35c4bf216cdb732cf9 100644 (file)
@@ -22,6 +22,7 @@ private:
 
 public:
        Keyboard(Graphics::Window &);
+       virtual ~Keyboard();
 
        virtual std::string get_button_name(unsigned) const;
 private: