summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-03-23 09:33:53 +0000
committerKurt Zenker <kz@openoffice.org>2004-03-23 09:33:53 +0000
commitd57ef4c0ae231cee9e4fc2949ff4494a1aff4b1f (patch)
treeeed7da6021e3efc2c994fc47ee8aa6e35830d8e0
parent20487e5cc98022ce44d7ad423eef7fae2c35a8af (diff)
INTEGRATION: CWS cfgcleanup (1.6.56); FILE MERGED
2004/02/09 15:30:40 jb 1.6.56.1: #i25025# Eliminate warnings from gcc
-rw-r--r--configmgr/source/treemgr/viewstrategy.cxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/configmgr/source/treemgr/viewstrategy.cxx b/configmgr/source/treemgr/viewstrategy.cxx
index 7bec3cb5fd8e..c15894ffb4a3 100644
--- a/configmgr/source/treemgr/viewstrategy.cxx
+++ b/configmgr/source/treemgr/viewstrategy.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewstrategy.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2003-04-17 13:33:39 $
+ * last change: $Author: kz $ $Date: 2004-03-23 10:33:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -468,10 +468,11 @@ namespace configmgr
{
using namespace configuration;
+#if (OSL_DEBUG_LEVEL > 0)
+ TreeImpl * pTreeData = _aGroupNode.tree().get_impl();
+#endif
for(SubtreeChange::ChildIterator it = rExternalChanges.begin(); it != rExternalChanges.end(); ++it)
{
- TreeImpl * pTreeData = _aGroupNode.tree().get_impl();
-
if ( it->ISA(SubtreeChange) )
{
Node aSubNode = _aGroupNode.findChild( makeNodeName(it->getNodeName(), Name::NoValidate()) );
@@ -522,26 +523,24 @@ namespace configmgr
struct GroupMemberDispatch : data::NodeVisitor
{
GroupMemberDispatch(ViewStrategy& _rStrategy, GroupNode const& _aGroup, GroupMemberVisitor& rVisitor)
- : m_aGroup(_aGroup)
+ : m_rStrategy(_rStrategy)
+ , m_aGroup(_aGroup)
, m_rVisitor(rVisitor)
- , m_rStrategy(_rStrategy)
{}
static Result mapResult(GroupMemberVisitor::Result _aResult)
{
- OSL_ASSERT( DONE == GroupMemberVisitor::DONE );
- OSL_ASSERT( CONTINUE == GroupMemberVisitor::CONTINUE );
- register int nResultValue = _aResult;
- return static_cast<Result>(nResultValue);
+ OSL_ASSERT( DONE == Result(GroupMemberVisitor::DONE) );
+ OSL_ASSERT( CONTINUE == Result(GroupMemberVisitor::CONTINUE) );
+ return Result(_aResult);
}
static GroupMemberVisitor::Result unmapResult(Result _aResult)
{
- OSL_ASSERT( DONE == GroupMemberVisitor::DONE );
- OSL_ASSERT( CONTINUE == GroupMemberVisitor::CONTINUE );
- register int nResultValue = _aResult;
- return static_cast<GroupMemberVisitor::Result>(nResultValue);
+ OSL_ASSERT( DONE == Result(GroupMemberVisitor::DONE) );
+ OSL_ASSERT( CONTINUE == Result(GroupMemberVisitor::CONTINUE) );
+ return GroupMemberVisitor::Result(_aResult);
}
virtual Result handle(data::ValueNodeAccess const& _aValue);