summaryrefslogtreecommitdiffhomepage
path: root/public/frameworks/CoreFoundation.fwrk
diff options
context:
space:
mode:
Diffstat (limited to 'public/frameworks/CoreFoundation.fwrk')
-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
6 files changed, 2 insertions, 8 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>
/***********************************************************************************/