summaryrefslogtreecommitdiff
path: root/include/utils
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-09-22 18:42:19 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-10-01 12:47:49 -0700
commit6f8885bc143460d77f300a981169e0487ff923c1 (patch)
tree5d12dce856d59d764bab7eeefacce9a2e8d746ea /include/utils
parent17cd2c49c9234758b76cb7e43d0bd12496ef31fb (diff)
Implement C++11 move semantics for android::FileMap
FileMaps should be movable, thereby not requiring them to be only used with a unique_ptr as they currently are. Change-Id: I0fb8013bf398a2ced5420d85ba888c2a7fc5a496
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/FileMap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/FileMap.h b/include/utils/FileMap.h
index afd7bfd7b..7d372e1dc 100644
--- a/include/utils/FileMap.h
+++ b/include/utils/FileMap.h
@@ -52,6 +52,9 @@ class FileMap {
public:
FileMap(void);
+ FileMap(FileMap&& f);
+ FileMap& operator=(FileMap&& f);
+
/*
* Create a new mapping on an open file.
*