diff options
Diffstat (limited to 'tracker-pt')
| -rw-r--r-- | tracker-pt/module/camera.h | 4 | ||||
| -rw-r--r-- | tracker-pt/pt-api.hpp | 8 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/tracker-pt/module/camera.h b/tracker-pt/module/camera.h index f3f88cc5..f8f140de 100644 --- a/tracker-pt/module/camera.h +++ b/tracker-pt/module/camera.h @@ -37,7 +37,7 @@ struct Camera final : pt_camera      void show_camera_settings() override;  private: -    cc_warn_unused_result bool _get_frame(cv::Mat& Frame); +    [[nodiscard]] bool _get_frame(cv::Mat& Frame);      double dt_mean = 0, fov = 30;      Timer t; @@ -56,7 +56,7 @@ private:      pt_settings s; -    static constexpr inline double dt_eps = 1./384; +    static constexpr inline double dt_eps = 1./256;  };  } // ns pt_module diff --git a/tracker-pt/pt-api.hpp b/tracker-pt/pt-api.hpp index 19fab03e..12085560 100644 --- a/tracker-pt/pt-api.hpp +++ b/tracker-pt/pt-api.hpp @@ -42,7 +42,7 @@ struct pt_frame : pt_pixel_pos_mixin      template<typename t>      t* as() &      { -        using u = std::decay_t<t>; +        using u = remove_cvref_t<t>;          static_assert(std::is_convertible_v<u*, pt_frame*>, "must be derived from pt_frame");          return static_cast<t*>(this); @@ -69,11 +69,11 @@ struct pt_camera      pt_camera();      virtual ~pt_camera(); -    virtual cc_warn_unused_result bool start(int idx, int fps, int res_x, int res_y) = 0; +    [[nodiscard]] virtual bool start(int idx, int fps, int res_x, int res_y) = 0;      virtual void stop() = 0; -    virtual cc_warn_unused_result result get_frame(pt_frame& frame) = 0; -    virtual cc_warn_unused_result result get_info() const = 0; +    virtual result get_frame(pt_frame& frame) = 0; +    virtual result get_info() const = 0;      virtual pt_camera_info get_desired() const = 0;      virtual QString get_desired_name() const = 0;  | 
