[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3866 - trunk/pingus/src/display
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3866 - trunk/pingus/src/display |
Date: |
Fri, 18 Jul 2008 21:05:39 +0200 |
Author: grumbel
Date: 2008-07-18 21:05:39 +0200 (Fri, 18 Jul 2008)
New Revision: 3866
Modified:
trunk/pingus/src/display/framebuffer_surface.hpp
Log:
added operator bool()
Modified: trunk/pingus/src/display/framebuffer_surface.hpp
===================================================================
--- trunk/pingus/src/display/framebuffer_surface.hpp 2008-07-18 19:05:14 UTC
(rev 3865)
+++ trunk/pingus/src/display/framebuffer_surface.hpp 2008-07-18 19:05:39 UTC
(rev 3866)
@@ -42,6 +42,8 @@
FramebufferSurfaceImpl* get_impl() const { return impl.get(); }
bool operator==(const FramebufferSurface& other) const { return impl ==
other.impl; }
+
+ operator bool() const { return impl.get() != 0; }
private:
boost::shared_ptr<FramebufferSurfaceImpl> impl;
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3866 - trunk/pingus/src/display,
grumbel at BerliOS <=