mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use string_view in more places and reduce the number of empty string literals
This commit is contained in:
parent
5b36ea0179
commit
5491512905
45 changed files with 224 additions and 221 deletions
|
@ -171,17 +171,17 @@ namespace
|
|||
|
||||
namespace Interpreter
|
||||
{
|
||||
std::string fixDefinesDialog(const std::string& text, Context& context)
|
||||
std::string fixDefinesDialog(std::string_view text, Context& context)
|
||||
{
|
||||
return fixDefinesReal(text, true, context);
|
||||
}
|
||||
|
||||
std::string fixDefinesMsgBox(const std::string& text, Context& context)
|
||||
std::string fixDefinesMsgBox(std::string_view text, Context& context)
|
||||
{
|
||||
return fixDefinesReal(text, false, context);
|
||||
}
|
||||
|
||||
std::string fixDefinesBook(const std::string& text, Context& context)
|
||||
std::string fixDefinesBook(std::string_view text, Context& context)
|
||||
{
|
||||
return fixDefinesReal(text, false, context);
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
namespace Interpreter
|
||||
{
|
||||
std::string fixDefinesDialog(const std::string& text, Context& context);
|
||||
std::string fixDefinesMsgBox(const std::string& text, Context& context);
|
||||
std::string fixDefinesBook(const std::string& text, Context& context);
|
||||
std::string fixDefinesDialog(std::string_view text, Context& context);
|
||||
std::string fixDefinesMsgBox(std::string_view text, Context& context);
|
||||
std::string fixDefinesBook(std::string_view text, Context& context);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue