Why would boost::array<Bullet, 4> be better than Bullet[4]?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20301 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-09-15 23:04:28 +00:00
parent fe2085b0e1
commit 150b11e953
2 changed files with 3 additions and 5 deletions

View 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

View 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