mirror of https://github.com/djcb/mu.git
message: cosmetics
This commit is contained in:
parent
d873c231ee
commit
8c3d1ae90a
|
@ -33,8 +33,8 @@
|
||||||
|
|
||||||
using namespace Mu;
|
using namespace Mu;
|
||||||
|
|
||||||
constexpr char SepaChar1 = 0xfe;
|
constexpr uint8_t SepaChar1 = 0xfe;
|
||||||
constexpr char SepaChar2 = 0xff;
|
constexpr uint8_t SepaChar2 = 0xff;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_search_term(Xapian::Document& doc, const Field& field, const std::string& val)
|
add_search_term(Xapian::Document& doc, const Field& field, const std::string& val)
|
||||||
|
@ -329,8 +329,8 @@ Document::remove(Field::Id field_id)
|
||||||
xapian_try([&]{
|
xapian_try([&]{
|
||||||
|
|
||||||
if (auto&& val{xdoc_.get_value(field.value_no())}; !val.empty()) {
|
if (auto&& val{xdoc_.get_value(field.value_no())}; !val.empty()) {
|
||||||
g_debug("removing value<%u>: '%s'", field.value_no(),
|
// g_debug("removing value<%u>: '%s'", field.value_no(),
|
||||||
val.c_str());
|
// val.c_str());
|
||||||
xdoc_.remove_value(field.value_no());
|
xdoc_.remove_value(field.value_no());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ Document::remove(Field::Id field_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto&& term: kill_list) {
|
for (auto&& term: kill_list) {
|
||||||
g_debug("removing term '%s'", term.c_str());
|
// g_debug("removing term '%s'", term.c_str());
|
||||||
try {
|
try {
|
||||||
xdoc_.remove_term(term);
|
xdoc_.remove_term(term);
|
||||||
} catch(const Xapian::InvalidArgumentError& xe) {
|
} catch(const Xapian::InvalidArgumentError& xe) {
|
||||||
|
|
|
@ -38,8 +38,6 @@ Mu::to_string(Flags flags)
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The file-components, ie.
|
* The file-components, ie.
|
||||||
* 1631819685.fb7b279bbb0a7b66.evergrey:2,RS
|
* 1631819685.fb7b279bbb0a7b66.evergrey:2,RS
|
||||||
|
@ -53,7 +51,7 @@ Mu::to_string(Flags flags)
|
||||||
struct FileParts {
|
struct FileParts {
|
||||||
std::string base;
|
std::string base;
|
||||||
char separator;
|
char separator;
|
||||||
std::string flags_suffix;;
|
std::string flags_suffix;
|
||||||
};
|
};
|
||||||
|
|
||||||
static FileParts
|
static FileParts
|
||||||
|
|
Loading…
Reference in New Issue