diff --git a/eeschema/sim/sim_panel_base.h b/eeschema/sim/sim_panel_base.h index 8b5ea65ccb..90adeeb792 100644 --- a/eeschema/sim/sim_panel_base.h +++ b/eeschema/sim/sim_panel_base.h @@ -57,7 +57,7 @@ public: m_simCommand = aSimCommand; } - const int GetSimOptions() const { return m_simOptions; } + int GetSimOptions() const { return m_simOptions; } void SetSimOptions( int aOptions ) { m_simOptions = aOptions; } private: diff --git a/kicad/pcm/pcm.cpp b/kicad/pcm/pcm.cpp index c11b63a28e..c14a250fd8 100644 --- a/kicad/pcm/pcm.cpp +++ b/kicad/pcm/pcm.cpp @@ -411,7 +411,7 @@ PLUGIN_CONTENT_MANAGER::getCachedRepository( const wxString& aRepositoryId ) con } -const bool PLUGIN_CONTENT_MANAGER::CacheRepository( const wxString& aRepositoryId ) +bool PLUGIN_CONTENT_MANAGER::CacheRepository( const wxString& aRepositoryId ) { if( m_repository_cache.find( aRepositoryId ) != m_repository_cache.end() ) return true; diff --git a/kicad/pcm/pcm.h b/kicad/pcm/pcm.h index 85e452b8e7..a6776222c2 100644 --- a/kicad/pcm/pcm.h +++ b/kicad/pcm/pcm.h @@ -200,7 +200,7 @@ public: * @param aRepositoryId id of the repository to cache * @return true if packages metadata was cached successfully */ - const bool CacheRepository( const wxString& aRepositoryId ); + bool CacheRepository( const wxString& aRepositoryId ); /** * @brief Get the packages metadata from a previously cached repository diff --git a/libs/kimath/include/geometry/shape_rect.h b/libs/kimath/include/geometry/shape_rect.h index 58d970eabd..96fdf3576f 100644 --- a/libs/kimath/include/geometry/shape_rect.h +++ b/libs/kimath/include/geometry/shape_rect.h @@ -140,7 +140,7 @@ public: /** * @return the width of the rectangle. */ - const int GetWidth() const + int GetWidth() const { return m_w; } @@ -148,7 +148,7 @@ public: /** * @return the height of the rectangle. */ - const int GetHeight() const + int GetHeight() const { return m_h; }