r21531 by craig - Add const, make hunspell 1.5.0 compatibility better

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 21 22:09:36 UTC 2016


Author: craig
Date: Mon Nov 21 22:09:35 2016
New Revision: 21531

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21531
Log:
Add const, make hunspell 1.5.0 compatibility better

Modified:
    trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp

Modified: trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21531&path=/trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp	(original)
+++ trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp	Mon Nov 21 22:09:35 2016
@@ -19,7 +19,7 @@
 	m_hunspell = new Hunspell(affPath.toLocal8Bit().constData(), dictPath.toLocal8Bit().constData());
 	if (m_hunspell)
 	{
-		char* dictEncoding = m_hunspell->get_dic_encoding();
+		const char* dictEncoding = m_hunspell->get_dic_encoding();
 		if (dictEncoding)
 			encoding = QString::fromLatin1(dictEncoding);
 	}




More information about the scribus-commit mailing list