diff options
Diffstat (limited to 'runtime/transaction.h')
| -rw-r--r-- | runtime/transaction.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/transaction.h b/runtime/transaction.h index d1470388f3..6fa8e5861c 100644 --- a/runtime/transaction.h +++ b/runtime/transaction.h @@ -245,15 +245,17 @@ class Transaction final { REQUIRES(Locks::intern_table_lock_); void VisitRoots(RootVisitor* visitor) REQUIRES_SHARED(Locks::mutator_lock_); - InternStringLog() = default; + // Only the move constructor is supported. + InternStringLog() = delete; + InternStringLog(const InternStringLog& log) = delete; + InternStringLog& operator=(const InternStringLog& log) = delete; InternStringLog(InternStringLog&& log) = default; + InternStringLog& operator=(InternStringLog&& log) = delete; private: mutable GcRoot<mirror::String> str_; const StringKind string_kind_; const StringOp string_op_; - - DISALLOW_COPY_AND_ASSIGN(InternStringLog); }; class ResolveStringLog : public ValueObject { |