mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-27 06:41:58 +00:00
Reduced duplicated code between localize asset loaders
This commit is contained in:
9
src/ObjCommon/Localize/CommonLocalizeEntry.cpp
Normal file
9
src/ObjCommon/Localize/CommonLocalizeEntry.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include "CommonLocalizeEntry.h"
|
||||
|
||||
CommonLocalizeEntry::CommonLocalizeEntry() = default;
|
||||
|
||||
CommonLocalizeEntry::CommonLocalizeEntry(std::string key, std::string value)
|
||||
: m_key(std::move(key)),
|
||||
m_value(std::move(value))
|
||||
{
|
||||
}
|
12
src/ObjCommon/Localize/CommonLocalizeEntry.h
Normal file
12
src/ObjCommon/Localize/CommonLocalizeEntry.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
class CommonLocalizeEntry
|
||||
{
|
||||
public:
|
||||
std::string m_key;
|
||||
std::string m_value;
|
||||
|
||||
CommonLocalizeEntry();
|
||||
CommonLocalizeEntry(std::string key, std::string value);
|
||||
};
|
Reference in New Issue
Block a user