Permalink
Browse files

OSX: Cross compilation fixes for mythmusic.

Signed-off-by: Mark Kendall <mkendall@mythtv.org>
  • Loading branch information...
1 parent 7c60905 commit 3860dd2b6022b1bb4198eebc8cf79c1206c77f8c Lawrence Rust committed with Mark Kendall Mar 16, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −0 mythplugins/mythmusic/mythmusic/cddecoder.h
  2. +5 −6 mythplugins/mythmusic/mythmusic/visualize.h
@@ -7,6 +7,7 @@
#if CONFIG_DARWIN
#include <vector>
+using std::vector;
#endif
#if defined(__linux__) || defined(__FreeBSD__)
@@ -13,8 +13,7 @@
#define VISUALIZE_H
// C++ headers
-#include <vector>
-using namespace std;
+#include <QVector>
// MythTV headers
#include <visual.h>
@@ -66,8 +65,8 @@ class Spectrum : public VisualBase
inline double clamp(double cur, double max, double min);
QColor startColor, targetColor;
- vector<QRect> rects;
- vector<double> magnitudes;
+ QVector<QRect> rects;
+ QVector<double> magnitudes;
QSize size;
LogScale scale;
double scaleFactor, falloff;
@@ -161,8 +160,8 @@ class Gears : public QGLWidget, public VisualBase
private:
QColor startColor, targetColor;
- vector<QRect> rects;
- vector<double> magnitudes;
+ QVector<QRect> rects;
+ QVector<double> magnitudes;
QSize size;
LogScale scale;
double scaleFactor, falloff;

0 comments on commit 3860dd2

Please sign in to comment.