Mark method const.

This was SVN commit r18619.
This commit is contained in:
leper
2016-08-21 20:35:06 +00:00
parent f79a9bd4c4
commit e7df8edc7d
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
/* Copyright (c) 2015 Wildfire Games
/* Copyright (c) 2016 Wildfire Games
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -43,7 +43,7 @@ static Status ReloadChangedFileCB(void* param, const VfsPath& path)
}
L10n::L10n()
: currentLocaleIsOriginalGameLocale(false), useLongStrings(false), dictionary(new tinygettext::Dictionary())
: dictionary(new tinygettext::Dictionary()), currentLocaleIsOriginalGameLocale(false), useLongStrings(false)
{
// Determine whether or not to print tinygettext messages to the standard
// error output, which it tinygettexts default behavior, but not ours.
@@ -530,7 +530,7 @@ void L10n::LoadListOfAvailableLocales()
}
}
void L10n::ReadPoIntoDictionary(const std::string& poContent, tinygettext::Dictionary* dictionary)
void L10n::ReadPoIntoDictionary(const std::string& poContent, tinygettext::Dictionary* dictionary) const
{
try
{
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (c) 2015 Wildfire Games
/* Copyright (c) 2016 Wildfire Games
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -573,7 +573,7 @@ private:
* @param dictionary Dictionary where the entries from the PO file should be
* stored.
*/
void ReadPoIntoDictionary(const std::string& poContent, tinygettext::Dictionary* dictionary);
void ReadPoIntoDictionary(const std::string& poContent, tinygettext::Dictionary* dictionary) const;
/**
* Creates an ICU date formatted with the specified settings.