aboutsummaryrefslogtreecommitdiff
path: root/src/core/bufferfragment_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
commit8bed00ab34e31f2b9c70026d418d923913325798 (patch)
treef289c15575415a36bc19c047a2037998e9b11ce8 /src/core/bufferfragment_p.h
parent186755fd56b58dc97250846c5305ef89f9487f86 (diff)
downloadkconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.gz
kconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.bz2
Run clang-format on all cpp/h files
NO_CHANGELOG
Diffstat (limited to 'src/core/bufferfragment_p.h')
-rw-r--r--src/core/bufferfragment_p.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/bufferfragment_p.h b/src/core/bufferfragment_p.h
index 3edbb6b6..f75af1d6 100644
--- a/src/core/bufferfragment_p.h
+++ b/src/core/bufferfragment_p.h
@@ -24,14 +24,16 @@
class KConfigIniBackend::BufferFragment
{
-
public:
-
- BufferFragment() : d(nullptr), len(0)
+ BufferFragment()
+ : d(nullptr)
+ , len(0)
{
}
- BufferFragment(char *buf, int size) : d(buf), len(size)
+ BufferFragment(char *buf, int size)
+ : d(buf)
+ , len(size)
{
}
@@ -184,7 +186,7 @@ private:
uint qHash(const KConfigIniBackend::BufferFragment fragment)
{
- const uchar *p = reinterpret_cast<const uchar*>(fragment.constData());
+ const uchar *p = reinterpret_cast<const uchar *>(fragment.constData());
const int len = fragment.length();
// This algorithm is copied from qhash.cpp (Qt5 version).