summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:05:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:22 +0100
commit9afd58e71aea495f2f04abec8754ed7355dbf386 (patch)
tree2a3c5cbf0f6d8f9683b9ed12713b17b8f471de31 /lingucomponent
parent7a1c56c5a22ed38ec5d0b1e75bd925f10c43ec56 (diff)
Clean up C-style casts from pointers to void
Change-Id: I76204cd86daa7b95f9c70276459d7dd112198135
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/simpleguesser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx
index 3c33b9844542..cf5324416a86 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.cxx
@@ -159,7 +159,7 @@ Guess SimpleGuesser::GuessPrimaryLanguage(const char* text)
*/
vector<Guess> SimpleGuesser::GetManagedLanguages(const char mask)
{
- textcat_t *tables = (textcat_t*)h;
+ textcat_t *tables = static_cast<textcat_t*>(h);
vector<Guess> lang;
if(!h){return lang;}
@@ -195,7 +195,7 @@ vector<Guess> SimpleGuesser::GetAllManagedLanguages()
void SimpleGuesser::XableLanguage(const string& lang, char mask)
{
- textcat_t *tables = (textcat_t*)h;
+ textcat_t *tables = static_cast<textcat_t*>(h);
if(!h){return;}