diff options
Diffstat (limited to 'linden/indra/newview/lltrans.h')
-rw-r--r-- | linden/indra/newview/lltrans.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/lltrans.h b/linden/indra/newview/lltrans.h index eb159f2..b127471 100644 --- a/linden/indra/newview/lltrans.h +++ b/linden/indra/newview/lltrans.h | |||
@@ -40,10 +40,10 @@ | |||
40 | class LLTransTemplate | 40 | class LLTransTemplate |
41 | { | 41 | { |
42 | public: | 42 | public: |
43 | LLTransTemplate(const LLString& name = "", const LLString& text = "") : mName(name), mText(text) {} | 43 | LLTransTemplate(const std::string& name = LLStringUtil::null, const std::string& text = LLStringUtil::null) : mName(name), mText(text) {} |
44 | 44 | ||
45 | LLString mName; | 45 | std::string mName; |
46 | LLString mText; | 46 | std::string mText; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | /** | 49 | /** |
@@ -62,7 +62,7 @@ public: | |||
62 | * @param xml_filename Filename to parse | 62 | * @param xml_filename Filename to parse |
63 | * @returns true if the file was parsed successfully, true if something went wrong | 63 | * @returns true if the file was parsed successfully, true if something went wrong |
64 | */ | 64 | */ |
65 | static bool parseStrings(const LLString& xml_filename); | 65 | static bool parseStrings(const std::string& xml_filename); |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * @brief Returns a translated string | 68 | * @brief Returns a translated string |
@@ -70,22 +70,22 @@ public: | |||
70 | * @param args A list of substrings to replace in the string | 70 | * @param args A list of substrings to replace in the string |
71 | * @returns Translated string | 71 | * @returns Translated string |
72 | */ | 72 | */ |
73 | static LLString getString(const LLString &xml_desc, const LLString::format_map_t& args); | 73 | static std::string getString(const std::string &xml_desc, const LLStringUtil::format_map_t& args); |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * @brief Returns a translated string | 76 | * @brief Returns a translated string |
77 | * @param xml_desc String's description | 77 | * @param xml_desc String's description |
78 | * @returns Translated string | 78 | * @returns Translated string |
79 | */ | 79 | */ |
80 | static LLString getString(const LLString &xml_desc) | 80 | static std::string getString(const std::string &xml_desc) |
81 | { | 81 | { |
82 | LLString::format_map_t empty; | 82 | LLStringUtil::format_map_t empty; |
83 | return getString(xml_desc, empty); | 83 | return getString(xml_desc, empty); |
84 | } | 84 | } |
85 | 85 | ||
86 | 86 | ||
87 | private: | 87 | private: |
88 | typedef std::map<LLString, LLTransTemplate > template_map_t; | 88 | typedef std::map<std::string, LLTransTemplate > template_map_t; |
89 | static template_map_t sStringTemplates; | 89 | static template_map_t sStringTemplates; |
90 | }; | 90 | }; |
91 | 91 | ||