diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-02-26 22:46:55 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-02-26 22:46:55 +0100 |
commit | e1eb5c1d651a8906074feda2d2a0ad103e838949 (patch) | |
tree | e387d5498d9c2dd53170126b3497b28c25c5d47a /glib/src/checksum.ccg | |
parent | dc111022570a417f396b81cdaef1a5db58022017 (diff) | |
download | glibmm-e1eb5c1d651a8906074feda2d2a0ad103e838949.tar.gz |
Run clang-format on the .ccg files.
This seems to work.
Diffstat (limited to 'glib/src/checksum.ccg')
-rw-r--r-- | glib/src/checksum.ccg | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/glib/src/checksum.ccg b/glib/src/checksum.ccg index 9a700501..140ea792 100644 --- a/glib/src/checksum.ccg +++ b/glib/src/checksum.ccg @@ -21,8 +21,7 @@ namespace Glib { -Checksum::Checksum(ChecksumType type) -: gobject_(g_checksum_new((GChecksumType)type)) +Checksum::Checksum(ChecksumType type) : gobject_(g_checksum_new((GChecksumType)type)) { } @@ -31,17 +30,21 @@ Checksum::operator bool() const return gobject_ != nullptr; } -gssize Checksum::get_length(ChecksumType checksum_type) +gssize +Checksum::get_length(ChecksumType checksum_type) { return g_checksum_type_get_length((GChecksumType)checksum_type); } -std::string Checksum::compute_checksum(ChecksumType checksum_type, const std::string& data) +std::string +Checksum::compute_checksum(ChecksumType checksum_type, const std::string& data) { - return Glib::convert_return_gchar_ptr_to_ustring(g_compute_checksum_for_string(((GChecksumType)checksum_type), data.c_str(), data.size())); + return Glib::convert_return_gchar_ptr_to_ustring( + g_compute_checksum_for_string(((GChecksumType)checksum_type), data.c_str(), data.size())); } -void Checksum::update(const std::string& data) +void +Checksum::update(const std::string& data) { g_checksum_update(gobj(), (const guchar*)data.c_str(), data.size()); } |