diff options
author | Jose <jose@zeroc.com> | 2013-01-31 16:51:40 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-01-31 16:51:40 +0100 |
commit | 4d55f11cdf22fbc23e3e7c9f4758566bd05a9471 (patch) | |
tree | f5c3071ebb27c18dae2fb2585706bd9af8dd92cf /cpp/src/Freeze/TransactionalEvictorI.cpp | |
parent | Fixed ICE-4870 - optional comparison operators on C++ structs (diff) | |
download | ice-4d55f11cdf22fbc23e3e7c9f4758566bd05a9471.tar.bz2 ice-4d55f11cdf22fbc23e3e7c9f4758566bd05a9471.tar.xz ice-4d55f11cdf22fbc23e3e7c9f4758566bd05a9471.zip |
Xcode 4.6 - clang 4.2 updates
Diffstat (limited to 'cpp/src/Freeze/TransactionalEvictorI.cpp')
-rw-r--r-- | cpp/src/Freeze/TransactionalEvictorI.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/Freeze/TransactionalEvictorI.cpp b/cpp/src/Freeze/TransactionalEvictorI.cpp index c3d641cf00b..f5788fddfcd 100644 --- a/cpp/src/Freeze/TransactionalEvictorI.cpp +++ b/cpp/src/Freeze/TransactionalEvictorI.cpp @@ -344,10 +344,16 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) { public: +#ifndef NDEBUG CtxHolder(bool ownCtx, const TransactionalEvictorContextPtr& ctx, const SharedDbEnvPtr& dbEnv) : _ownCtx(ownCtx), _ctx(ctx), _dbEnv(dbEnv) +#else + CtxHolder(bool ownCtx, const TransactionalEvictorContextPtr& ctx) : + _ownCtx(ownCtx), + _ctx(ctx) +#endif { } @@ -371,7 +377,9 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) private: const bool _ownCtx; const TransactionalEvictorContextPtr _ctx; +#ifndef NDEBUG const SharedDbEnvPtr& _dbEnv; +#endif }; @@ -517,7 +525,11 @@ Freeze::TransactionalEvictorI::dispatch(Request& request) ctx = _dbEnv->createCurrent(); } +#ifndef NDEBUG CtxHolder ctxHolder(ownCtx, ctx, _dbEnv); +#else + CtxHolder ctxHolder(ownCtx, ctx); +#endif tx = ctx->transaction(); try |