Tidy up use of mac_psn.

This commit is contained in:
John Maguire 2011-09-16 16:27:31 +02:00
parent b0c880d444
commit 0da6a4f1ca
2 changed files with 3 additions and 4 deletions

View File

@ -25,8 +25,8 @@
GlobalSearchPopup::GlobalSearchPopup(QWidget* parent) GlobalSearchPopup::GlobalSearchPopup(QWidget* parent)
: QWidget(parent), : QWidget(parent),
mac_psn_(NULL), ui_(new Ui_GlobalSearchPopup),
ui_(new Ui_GlobalSearchPopup) { mac_psn_(NULL) {
Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint; Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
setWindowFlags(flags); setWindowFlags(flags);

View File

@ -48,14 +48,13 @@ class GlobalSearchPopup : public QWidget {
void StorePreviousProcess(); void StorePreviousProcess();
void ActivatePreviousProcess(); void ActivatePreviousProcess();
ProcessSerialNumber* mac_psn_;
signals: signals:
void AddToPlaylist(QMimeData*); void AddToPlaylist(QMimeData*);
void Closed(); void Closed();
private: private:
boost::scoped_ptr<Ui_GlobalSearchPopup> ui_; boost::scoped_ptr<Ui_GlobalSearchPopup> ui_;
ProcessSerialNumber* mac_psn_;
}; };
#endif // GLOBALSEARCHPOPUP_H #endif // GLOBALSEARCHPOPUP_H