+ // Reference counting of watch entries is used to avoid watching the same
+ // file system path multiple times (this can happen even accidentally, e.g.
+ // when you have a recursive watch and then decide to watch some file or
+ // directory under it separately).
+ int IncRef()
+ {
+ return ++m_refcount;
+ }
+
+ int DecRef()
+ {
+ wxASSERT_MSG( m_refcount > 0, wxS("Trying to decrement a zero count") );
+ return --m_refcount;
+ }
+