From 9d8ce3df62993560ac6e432d9c37ef40a3060988 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 18 Apr 2017 10:49:45 +0200 Subject: [PATCH] aspell: use const rclconfig --- src/aspell/rclaspell.cpp | 2 +- src/aspell/rclaspell.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aspell/rclaspell.cpp b/src/aspell/rclaspell.cpp index de0db640..a6f13563 100644 --- a/src/aspell/rclaspell.cpp +++ b/src/aspell/rclaspell.cpp @@ -103,7 +103,7 @@ public: AspellSpeller *m_speller; }; -Aspell::Aspell(RclConfig *cnf) +Aspell::Aspell(const RclConfig *cnf) : m_config(cnf), m_data(0) { } diff --git a/src/aspell/rclaspell.h b/src/aspell/rclaspell.h index a493b5d9..68b39b2a 100644 --- a/src/aspell/rclaspell.h +++ b/src/aspell/rclaspell.h @@ -41,7 +41,7 @@ class AspellData; class Aspell { public: - Aspell(RclConfig *cnf); + Aspell(const RclConfig *cnf); ~Aspell(); /** Check health */ @@ -68,7 +68,7 @@ class Aspell { private: std::string dicPath(); - RclConfig *m_config; + const RclConfig *m_config; std::string m_lang; AspellData *m_data;