Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=60a6b9b2688ee521b5b4caef80843598c6b75d78

commit 60a6b9b2688ee521b5b4caef80843598c6b75d78
Author: Michel Hermier <[email protected]>
Date:   Tue May 20 08:27:45 2014 +0200

libpacman: Rename static version of FObject::acquire/release, helper functions 
fAcquire/fRelease, they where not meant to be commited.

diff --git a/lib/libpacman/kernel/fobject.h b/lib/libpacman/kernel/fobject.h
index 3dcf1f7..80a3850 100644
--- a/lib/libpacman/kernel/fobject.h
+++ b/lib/libpacman/kernel/fobject.h
@@ -31,23 +31,6 @@ namespace flib
class FObject
{
public:
-       static inline
-       void acquire(const flib::FObject *object)
-       {
-               if(object != 0) {
-                       object->acquire();
-               }
-       }
-
-       static inline
-       void release(const flib::FObject *object)
-       {
-               if(object != 0) {
-                       object->release();
-               }
-       }
-
-public:
void operator delete(void *ptr);
void *operator new(std::size_t size);

@@ -74,6 +57,20 @@ private:
mutable unsigned m_reference_counter;
};

+static inline void fAcquire(flib::FObject *object)
+{
+       if(object != nullptr) {
+               object->acquire();
+       }
+}
+
+static inline void fRelease(flib::FObject *object)
+{
+       if(object != nullptr) {
+               object->release();
+       }
+}
+
}

#endif /* FOBJECT_H */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to