summaryrefslogtreecommitdiffhomepage
path: root/dev/SCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-02 10:06:13 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-02 10:06:13 +0200
commitb3888ff9e2c18da6b73a57f453f7ad36fea61b7b (patch)
tree1c2c6da3f8fba030222f7505f73a104eaf9e17cf /dev/SCI
parent9b7082353e9f7bd4d3ae077959de553f437316db (diff)
[ META ] Update formating.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/SCI')
-rw-r--r--dev/SCI/sci_base.hxx16
-rw-r--r--dev/SCI/xpcom_core.hxx26
2 files changed, 21 insertions, 21 deletions
diff --git a/dev/SCI/sci_base.hxx b/dev/SCI/sci_base.hxx
index e3bc39de..0cff8f0d 100644
--- a/dev/SCI/sci_base.hxx
+++ b/dev/SCI/sci_base.hxx
@@ -39,8 +39,8 @@ typedef char Char;
#ifdef __SCI_IMPL__
#include <SCI/xpcom_core.hxx>
#else
-class IUnknown; // Refrenced from an IDB entry.
-class UnknownUCLSID; // From the IDB, the constructor of the object, e.g: WordUCLSID.
+class IUnknown; // Refrenced from an IDB entry.
+class UnknownUCLSID; // From the IDB, the constructor of the object, e.g: WordUCLSID.
class UUID;
/// @brief Allocate new SCM class.
@@ -70,10 +70,10 @@ public:
IUnknown& operator=(const IUnknown&) = default;
IUnknown(const IUnknown&) = default;
- virtual SInt32 Release() = 0;
- virtual void RemoveRef() = 0;
- virtual IUnknown* AddRef() = 0;
- virtual VoidPtr QueryInterface(UUID* p_uuid) = 0;
+ virtual SInt32 Release() = 0;
+ virtual void RemoveRef() = 0;
+ virtual IUnknown* AddRef() = 0;
+ virtual VoidPtr QueryInterface(UUID* p_uuid) = 0;
};
template <typename FnSign, typename ClsID>
@@ -86,7 +86,7 @@ public:
IEventListener& operator=(const IEventListener&) = default;
IEventListener(const IEventListener&) = default;
- virtual IEventListener& operator +=(FnSign arg) = 0;
+ virtual IEventListener& operator+=(FnSign arg) = 0;
};
#endif
@@ -185,7 +185,7 @@ IMPORT_C SInt32 XPCOMCreateInstance(_Input UInt32 flags, _Output ZKAObject* hand
/// @brief Destroys an SCM instance of the process.
/// @param handle_instance the SCM handle.
-IMPORT_C UInt0 XPCOMDestroyInstance(_Input ZKAObject handle_instance);
+IMPORT_C UInt0 XPCOMDestroyInstance(_Input ZKAObject handle_instance);
// ------------------------------------------------------------------------
// Memory Management API.
diff --git a/dev/SCI/xpcom_core.hxx b/dev/SCI/xpcom_core.hxx
index f48fd30b..1362319d 100644
--- a/dev/SCI/xpcom_core.hxx
+++ b/dev/SCI/xpcom_core.hxx
@@ -10,16 +10,16 @@ Purpose: Base code of SCM.
/// @internal
#ifndef __NDK__
-#define object class
+#define object class
#define protocol class
#define clsid(X)
#warning ! You may be using the clang version of the ZKA kit, please be cautious that some thing mayn't be present. !
#endif // !__NDK__
-protocol IUnknown; // Refrenced from an IDB entry.
-protocol UnknownUCLSID; // From the IDB, the constructor of the object, e.g: TextUCLSID.
-object UUID;
+protocol IUnknown; // Refrenced from an IDB entry.
+protocol UnknownUCLSID; // From the IDB, the constructor of the object, e.g: TextUCLSID.
+object UUID;
/// @brief Unknown XPCOM interface
protocol clsid("d7c144b6-0792-44b8-b06b-02b227b547df") IUnknown
@@ -31,10 +31,10 @@ public:
IUnknown& operator=(const IUnknown&) = default;
IUnknown(const IUnknown&) = default;
- virtual SInt32 Release() = 0;
- virtual void RemoveRef() = 0;
- virtual IUnknown* AddRef() = 0;
- virtual VoidPtr QueryInterface(UUID* p_uuid) = 0;
+ virtual SInt32 Release() = 0;
+ virtual void RemoveRef() = 0;
+ virtual IUnknown* AddRef() = 0;
+ virtual VoidPtr QueryInterface(UUID * p_uuid) = 0;
};
/// @brief Allocate new SCM object.
@@ -45,7 +45,7 @@ public:
template <typename TCLS, typename UCLSID, typename... Args>
inline TCLS* XPCOMQueryInterface(UCLSID* uclsidOfCls, Args&&... args)
{
- uclsidOfCls->AddRef();
+ uclsidOfCls->AddRef();
return uclsidOfCls->QueryInterfaceWithArgs(args...);
}
@@ -77,9 +77,9 @@ public:
IEventListener& operator=(const IEventListener&) = default;
IEventListener(const IEventListener&) = default;
- virtual IEventListener& operator +=(FnSign arg)
+ virtual IEventListener& operator+=(FnSign arg)
{
- this->AddEventListener(arg);
- return *this;
- }
+ this->AddEventListener(arg);
+ return *this;
+ }
};