mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix code formatting in a few files
This commit is contained in:
@@ -40,7 +40,9 @@ void HandleError(std::string_view operation, int returnCode) {
|
||||
std::string err;
|
||||
lci_get_error_message(&message);
|
||||
if (message == nullptr) {
|
||||
err = fmt::format("Failed to {}. loot-condition-interpreter error code: {}", operation, returnCode);
|
||||
err = fmt::format("Failed to {}. loot-condition-interpreter error code: {}",
|
||||
operation,
|
||||
returnCode);
|
||||
} else {
|
||||
err = fmt::format("Failed to {}. Details: {}", operation, message);
|
||||
}
|
||||
|
||||
@@ -30,15 +30,12 @@ namespace loot {
|
||||
Message::Message(const MessageType type,
|
||||
std::string_view content,
|
||||
std::string_view condition) :
|
||||
type_(type),
|
||||
content_({MessageContent(content)}), condition_(condition) {}
|
||||
type_(type), content_({MessageContent(content)}), condition_(condition) {}
|
||||
|
||||
Message::Message(const MessageType type,
|
||||
const std::vector<MessageContent>& content,
|
||||
std::string_view condition) :
|
||||
type_(type),
|
||||
content_(content),
|
||||
condition_(condition) {
|
||||
type_(type), content_(content), condition_(condition) {
|
||||
if (content.size() > 1) {
|
||||
bool englishStringExists = false;
|
||||
for (const auto& mc : content) {
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
#include "loot/metadata/plugin_cleaning_data.h"
|
||||
|
||||
namespace loot {
|
||||
PluginCleaningData::PluginCleaningData(uint32_t crc,
|
||||
std::string_view utility) :
|
||||
PluginCleaningData::PluginCleaningData(uint32_t crc, std::string_view utility) :
|
||||
crc_(crc), utility_(utility) {}
|
||||
|
||||
PluginCleaningData::PluginCleaningData(
|
||||
|
||||
@@ -170,7 +170,8 @@ bool PluginMetadata::NameMatches(std::string_view pluginName) const {
|
||||
throw std::runtime_error("Regex plugin does not have regex object");
|
||||
}
|
||||
|
||||
return std::regex_match(pluginName.begin(), pluginName.end(), nameRegex_.value());
|
||||
return std::regex_match(
|
||||
pluginName.begin(), pluginName.end(), nameRegex_.value());
|
||||
}
|
||||
|
||||
return CompareFilenames(name_, pluginName) == 0;
|
||||
|
||||
@@ -28,9 +28,7 @@ namespace loot {
|
||||
Tag::Tag(std::string_view tag,
|
||||
const bool isAddition,
|
||||
std::string_view condition) :
|
||||
name_(tag),
|
||||
addTag_(isAddition),
|
||||
condition_(condition) {}
|
||||
name_(tag), addTag_(isAddition), condition_(condition) {}
|
||||
|
||||
bool Tag::IsAddition() const { return addTag_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user