X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_point.h;h=de8538ebe43c87da6c1ee87abbef7ca4541c933e;hb=d7b7efa3d6ed53e8a99d9b26d50662c559d1d764;hp=3dfe4701fa87814b04e07f8aa5ddca64a57ca089;hpb=e3c6a3c99f829174f69fc767b3b53f41053d1815;p=dcpomatic.git diff --git a/src/lib/audio_point.h b/src/lib/audio_point.h index 3dfe4701f..de8538ebe 100644 --- a/src/lib/audio_point.h +++ b/src/lib/audio_point.h @@ -17,6 +17,9 @@ */ +#ifndef DCPOMATIC_AUDIO_POINT_H +#define DCPOMATIC_AUDIO_POINT_H + #include namespace xmlpp { @@ -39,10 +42,12 @@ public: void as_xml (xmlpp::Element *) const; - float& operator[] (int t) { + inline float& operator[] (int t) { return _data[t]; } private: float _data[COUNT]; }; + +#endif