]> git.lyx.org Git - features.git/commitdiff
Why would boost::array<Bullet, 4> be better than Bullet[4]?
authorAndré Pönitz <poenitz@gmx.net>
Sat, 15 Sep 2007 23:04:28 +0000 (23:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sat, 15 Sep 2007 23:04:28 +0000 (23:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20301 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Application.h
src/frontends/qt4/BulletsModule.h

index 90bd21b5074efa388f59d1253b5616a3d98287f9..a682207c0581976a797f540628f48ed6aa006580 100644 (file)
@@ -204,7 +204,7 @@ public:
        * @param fd socket descriptor (file/socket/etc)
        */
        typedef boost::function<void()> SocketCallback;
-       virtual void registerSocketCallback( int fd, SocketCallback func) = 0;
+       virtual void registerSocketCallback(int fd, SocketCallback func) = 0;
 
        /**
        * remove a I/O read callback
index 71838f4ec97ca985f9f0c9946f05266596a25072..b0577fb6c4e119818757f48dd6424c6ac834505a 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "ui_BulletsUi.h"
 #include "Bullet.h"
-#include <boost/array.hpp>
 
 #include <QWidget>
 
@@ -24,6 +23,7 @@ namespace lyx {
 
 class BulletsModule : public QWidget, public Ui::BulletsUi {
        Q_OBJECT
+
 public:
        ///
        BulletsModule(QWidget * parent = 0, const char * name = 0, Qt::WFlags fl = 0);
@@ -39,7 +39,6 @@ Q_SIGNALS:
        void changed();
 
 protected Q_SLOTS:
-
        void on_bulletsizeCO_activated(int level);
        void on_customCB_clicked(bool);
        void on_customLE_textEdited(const QString &);
@@ -52,12 +51,11 @@ private:
                std::string const & fname);
 
        /// store results
-       boost::array<Bullet, 4> bullets_;
+       Bullet bullets_[4];
        int current_font_;
        int current_char_;
 };
 
-
 } // namespace lyx
 
 #endif // BULLETSMODULE_H