summaryrefslogtreecommitdiffhomepage
path: root/public/frameworks
diff options
context:
space:
mode:
Diffstat (limited to 'public/frameworks')
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Atom.h5
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h1
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Object.h1
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Property.h1
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Ref.h1
-rw-r--r--public/frameworks/CoreFoundation.fwrk/src/Foundation.cc1
-rw-r--r--public/frameworks/KernelTest.fwrk/headers/TestCase.h4
7 files changed, 3 insertions, 11 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
index c58d0600..5abf9824 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h
@@ -20,9 +20,8 @@ class CFAtom final {
CFAtom(const CFAtom&) = delete;
public:
- T operator[](SizeT bit) { return (fArrayOfAtoms & (1 << bit)); }
-
- void operator|(SizeT bit) { fArrayOfAtoms |= (1 << bit); }
+ const T& operator[](const T& bit) { return (fArrayOfAtoms & (T{1} << bit)); }
+ void operator|(const T& bit) { fArrayOfAtoms |= (T{1} << bit); }
friend Boolean operator==(CFAtom<T>& atomic, const T& idx) { return atomic[idx] == idx; }
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
index b8bc1d5b..f10dc2de 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h
@@ -3,7 +3,6 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-
#ifndef HEADERS_DICTIONARY_H
#define HEADERS_DICTIONARY_H
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Object.h b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
index e5531f00..54ee6268 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Object.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Object.h
@@ -4,7 +4,6 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-
#ifndef HEADERS_OBJECT_H
#define HEADERS_OBJECT_H
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
index 65798d5d..f3176827 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
@@ -3,7 +3,6 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-
#ifndef HEADERS_PROPERTY_H
#define HEADERS_PROPERTY_H
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
index ac151659..59928e4e 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
@@ -3,7 +3,6 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-
#ifndef HEADERS_REF_H
#define HEADERS_REF_H
diff --git a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc
index 192c72f5..e96e54a8 100644
--- a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc
+++ b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc
@@ -3,7 +3,6 @@
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
-
#include <CoreFoundation.fwrk/headers/Foundation.h>
/***********************************************************************************/
diff --git a/public/frameworks/KernelTest.fwrk/headers/TestCase.h b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
index 2090f84e..0a6208a8 100644
--- a/public/frameworks/KernelTest.fwrk/headers/TestCase.h
+++ b/public/frameworks/KernelTest.fwrk/headers/TestCase.h
@@ -40,9 +40,7 @@
KT_MUST_PASS(ret, ret, true); \
} \
} \
- inline const Char* KTTestCase##NAME::ToString() { \
- return #FN; \
- }
+ inline const Char* KTTestCase##NAME::ToString() { return #FN; }
KT_DECL_TEST(AlwaysBreak, []() -> bool {
KT_MUST_PASS("AlwaysBreak", YES, NO);