Skip to content

Commit cff949c

Browse files
committed
run clang-format
1 parent 9f365ee commit cff949c

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

src/frontend/ibusfrontend/ibusfrontend.cpp

+7-9
Original file line numberDiff line numberDiff line change
@@ -589,15 +589,13 @@ class IBusInputContext : public InputContext,
589589
setContentType(std::get<0>(type), std::get<1>(type));
590590
}),
591591
dbus::PropertyOption::Hidden);
592-
FCITX_OBJECT_VTABLE_WRITABLE_PROPERTY(clientCommitPreedit,
593-
"ClientCommitPreedit", "(b)",
594-
([this]() -> dbus::DBusStruct<bool> {
595-
return {clientCommitPreedit_};
596-
}),
597-
([this](dbus::DBusStruct<bool> value) {
598-
clientCommitPreedit_ = std::get<0>(value);
599-
}),
600-
dbus::PropertyOption::Hidden);
592+
FCITX_OBJECT_VTABLE_WRITABLE_PROPERTY(
593+
clientCommitPreedit, "ClientCommitPreedit", "(b)",
594+
([this]() -> dbus::DBusStruct<bool> { return {clientCommitPreedit_}; }),
595+
([this](dbus::DBusStruct<bool> value) {
596+
clientCommitPreedit_ = std::get<0>(value);
597+
}),
598+
dbus::PropertyOption::Hidden);
601599

602600
dbus::ObjectPath path_;
603601
IBusFrontend *im_;

src/modules/quickphrase/quickphrase.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ class QuickPhrase final : public AddonInstance {
6767
config_.load(config, true);
6868
safeSaveAsIni(config_, "conf/quickphrase.conf");
6969
}
70-
void setSubConfig(const std::string & path, const fcitx::RawConfig & ) override {
70+
void setSubConfig(const std::string &path,
71+
const fcitx::RawConfig &) override {
7172
if (path == "editor") {
7273
reloadConfig();
7374
}

test/testdbusmessage.cpp

+7-8
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ int main() {
4848
std::vector<DBusStruct<int32_t, uint32_t>>>>::value,
4949
"Type is not same");
5050
static_assert(
51-
std::is_same<
52-
DBusSignatureToType<'a', 'i', '(', 'i', 'u', ')'>::type,
53-
std::tuple<std::vector<int32_t>, DBusStruct<int32_t, uint32_t>>>::value,
51+
std::is_same<DBusSignatureToType<'a', 'i', '(', 'i', 'u', ')'>::type,
52+
std::tuple<std::vector<int32_t>,
53+
DBusStruct<int32_t, uint32_t>>>::value,
5454
"Type is not same");
55-
56-
static_assert(
57-
std::is_same<
58-
DBusSignatureToType<'(', 'i', 'i', ')'>::type,
59-
dbus::DBusStruct<int32_t, int32_t>>::value, "Type is not same");
55+
56+
static_assert(std::is_same<DBusSignatureToType<'(', 'i', 'i', ')'>::type,
57+
dbus::DBusStruct<int32_t, int32_t>>::value,
58+
"Type is not same");
6059

6160
// interface name must has dot
6261
{

0 commit comments

Comments
 (0)