Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/OperationContext.cs @ 195:ea485487a424 v2
minor changes
author | cin |
---|---|
date | Wed, 04 May 2016 12:28:08 +0300 |
parents | 04d4c92d0f28 |
children |
comparison
equal
deleted
inserted
replaced
194:d45bdf510514 | 195:ea485487a424 |
---|---|
28 if (m_current != m_initial) | 28 if (m_current != m_initial) |
29 m_current = m_current.Parent; | 29 m_current = m_current.Parent; |
30 else if (m_ownership) | 30 else if (m_ownership) |
31 m_current = LogicalOperation.EMPTY; | 31 m_current = LogicalOperation.EMPTY; |
32 else { | 32 else { |
33 TraceLog.TraceWarning("DetachLogicalOperation can't be applied in the current context"); | 33 TraceLog.TraceWarning("DetachLogicalOperation can't be performed in the current context"); |
34 detached = LogicalOperation.EMPTY; | 34 detached = LogicalOperation.EMPTY; |
35 } | 35 } |
36 } else { | 36 } else { |
37 TraceLog.TraceWarning("DetachLogicalOperation can't be applied in the current context"); | 37 TraceLog.TraceWarning("DetachLogicalOperation can't be performed in the current context"); |
38 } | 38 } |
39 | 39 |
40 return detached; | 40 return detached; |
41 } | 41 } |
42 | 42 |
48 // we have complete the owned operation | 48 // we have complete the owned operation |
49 m_initial = m_current; | 49 m_initial = m_current; |
50 m_ownership = false; | 50 m_ownership = false; |
51 } | 51 } |
52 } else { | 52 } else { |
53 TraceLog.TraceWarning("EndLogicalOperation can't be applied in the current context"); | 53 TraceLog.TraceWarning("EndLogicalOperation can't be performed in the current context"); |
54 } | 54 } |
55 return current; | 55 return current; |
56 } | 56 } |
57 | 57 |
58 public void Leave() { | 58 public void Leave() { |