Commit d708c16671cc786df1d69d2597450ea071e21faf

Authored by Charles Otto
1 parent f698c063

Update cast type used to convert Templates to file

Showing 1 changed file with 1 additions and 1 deletions
openbr/openbr_plugin.h
... ... @@ -354,7 +354,7 @@ struct Template : public QList<cv::Mat>
354 354 inline const cv::Mat &m() const { static const cv::Mat NullMatrix;
355 355 return isEmpty() ? qFatal("Empty template."), NullMatrix : last(); } /*!< \brief Idiom to treat the template as a matrix. */
356 356 inline cv::Mat &m() { return isEmpty() ? append(cv::Mat()), last() : last(); } /*!< \brief Idiom to treat the template as a matrix. */
357   - inline const File &operator()() const { return file; }
  357 + inline operator const File &() const { return file; }
358 358 inline cv::Mat &operator=(const cv::Mat &other) { return m() = other; } /*!< \brief Idiom to treat the template as a matrix. */
359 359 inline operator const cv::Mat&() const { return m(); } /*!< \brief Idiom to treat the template as a matrix. */
360 360 inline operator cv::Mat&() { return m(); } /*!< \brief Idiom to treat the template as a matrix. */
... ...