summaryrefslogtreecommitdiff
path: root/src/mongo/util/moveablebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/moveablebuffer.h')
-rw-r--r--src/mongo/util/moveablebuffer.h40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/mongo/util/moveablebuffer.h b/src/mongo/util/moveablebuffer.h
index 93232ed95ea..981197028af 100644
--- a/src/mongo/util/moveablebuffer.h
+++ b/src/mongo/util/moveablebuffer.h
@@ -32,32 +32,30 @@
namespace mongo {
- /** this is a sort of smart pointer class where we can move where something is and all the pointers will adjust.
- not threadsafe.
- */
- struct MoveableBuffer {
- MoveableBuffer();
- MoveableBuffer(void *);
- MoveableBuffer& operator=(const MoveableBuffer&);
- ~MoveableBuffer();
+/** this is a sort of smart pointer class where we can move where something is and all the pointers will adjust.
+ not threadsafe.
+ */
+struct MoveableBuffer {
+ MoveableBuffer();
+ MoveableBuffer(void*);
+ MoveableBuffer& operator=(const MoveableBuffer&);
+ ~MoveableBuffer();
- void *p;
- };
+ void* p;
+};
- /* implementation (inlines) below */
+/* implementation (inlines) below */
- // this is a temp stub implementation...not really done yet - just having everything compile & such for checkpointing into git
+// this is a temp stub implementation...not really done yet - just having everything compile & such for checkpointing into git
- inline MoveableBuffer::MoveableBuffer() : p(0) { }
+inline MoveableBuffer::MoveableBuffer() : p(0) {}
- inline MoveableBuffer::MoveableBuffer(void *_p) : p(_p) { }
+inline MoveableBuffer::MoveableBuffer(void* _p) : p(_p) {}
- inline MoveableBuffer& MoveableBuffer::operator=(const MoveableBuffer& r) {
- p = r.p;
- return *this;
- }
-
- inline MoveableBuffer::~MoveableBuffer() {
- }
+inline MoveableBuffer& MoveableBuffer::operator=(const MoveableBuffer& r) {
+ p = r.p;
+ return *this;
+}
+inline MoveableBuffer::~MoveableBuffer() {}
}