summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-12 05:09:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-12 05:11:06 -0500
commit48dc654eda27c01d0bad88674d21d0e33e5472f6 (patch)
treebfb05ee0d302c68b36942741f65fa0a243b0a96e /src/xact.cc
parent0068ac8fc06d00ba5172e5ddbd4f00cc4168681d (diff)
downloadfork-ledger-48dc654eda27c01d0bad88674d21d0e33e5472f6.tar.gz
fork-ledger-48dc654eda27c01d0bad88674d21d0e33e5472f6.tar.bz2
fork-ledger-48dc654eda27c01d0bad88674d21d0e33e5472f6.zip
Added has_xdata() methods for journal_t and xact_t
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 86b55dd5..1cece187 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -76,6 +76,15 @@ bool xact_base_t::remove_post(post_t * post)
return true;
}
+bool xact_base_t::has_xdata()
+{
+ foreach (post_t * post, posts)
+ if (post->has_xdata())
+ return true;
+
+ return false;
+}
+
void xact_base_t::clear_xdata()
{
foreach (post_t * post, posts)