summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:04:50 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:04:50 +0000
commit0fc678fc5481a94fd1ecbea051c7ce2486d7dfee (patch)
tree254744568f2babe6af65d8443ad45970efa81c3c
parentdd4d3082c29e8cd76923889c7f63e0dc3be53837 (diff)
INTEGRATION: CWS warnings01 (1.48.16); FILE MERGED
2006/01/27 12:39:19 sb 1.48.16.6: #i53898# Made code warning-free. 2006/01/25 18:00:19 sb 1.48.16.5: RESYNC: (1.48-1.49); FILE MERGED 2005/11/14 14:17:51 pl 1.48.16.4: #i55991# removed warnings 2005/11/10 13:13:13 pl 1.48.16.3: #i53898# removed warnings 2005/10/27 10:51:11 pl 1.48.16.2: #i55991# removed warnings for solaris platform 2005/10/21 09:48:52 dbo 1.48.16.1: #i53898# warning free code
-rw-r--r--unotools/source/config/configitem.cxx41
1 files changed, 20 insertions, 21 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 54109692b38e..471d87c1a4ce 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: configitem.cxx,v $
*
- * $Revision: 1.49 $
+ * $Revision: 1.50 $
*
- * last change: $Author: obo $ $Date: 2006-01-19 15:36:24 $
+ * last change: $Author: hr $ $Date: 2006-06-19 14:04:50 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -157,9 +157,10 @@ struct ConfigItem_Impl
ConfigItem_Impl() :
pManager(0),
nMode(0),
- nInValueChange(0),
bIsModified(sal_False),
- bEnableInternalNotification(sal_False){}
+ bEnableInternalNotification(sal_False),
+ nInValueChange(0)
+ {}
};
}
/* -----------------------------04.12.00 10:25--------------------------------
@@ -187,19 +188,19 @@ namespace
template <class TYP>
class AutoDeleter // : Noncopyable
{
- TYP* pItem;
+ TYP* m_pItem;
public:
AutoDeleter(TYP * pItem)
- : pItem(pItem)
+ : m_pItem(pItem)
{
}
~AutoDeleter()
{
- delete pItem;
+ delete m_pItem;
}
- void keep() { pItem = 0; }
+ void keep() { m_pItem = 0; }
};
}
/* -----------------------------29.08.00 16:34--------------------------------
@@ -242,8 +243,6 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) th
const OUString* pCheckPropertyNames = aPropertyNames.getConstArray();
- const sal_Int32 nBaseTreeLen = ConfigManager::GetConfigBaseURL().getLength() +
- pParent->GetSubTreeName().getLength() + 1;
sal_Int32 nNotify = 0;
for(int i = 0; i < aChangedNames.getLength(); i++)
{
@@ -261,16 +260,16 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) th
/* -----------------------------29.08.00 16:34--------------------------------
---------------------------------------------------------------------------*/
-void ConfigChangeListener_Impl::disposing( const EventObject& rSource ) throw(RuntimeException)
+void ConfigChangeListener_Impl::disposing( const EventObject& /*rSource*/ ) throw(RuntimeException)
{
- pParent->RemoveListener();
+ pParent->RemoveChangesListener();
}
/* -----------------------------29.08.00 12:50--------------------------------
---------------------------------------------------------------------------*/
ConfigItem::ConfigItem(const OUString rSubTree, sal_Int16 nSetMode ) :
- pImpl(new ConfigItem_Impl),
- sSubTree(rSubTree)
+ sSubTree(rSubTree),
+ pImpl(new ConfigItem_Impl)
{
AutoDeleter<ConfigItem_Impl> aNewImpl(pImpl);
@@ -289,8 +288,8 @@ ConfigItem::ConfigItem(const OUString rSubTree, sal_Int16 nSetMode ) :
---------------------------------------------------------------------------*/
ConfigItem::ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree) :
- pImpl(new ConfigItem_Impl),
- sSubTree(rSubTree)
+ sSubTree(rSubTree),
+ pImpl(new ConfigItem_Impl)
{
pImpl->pManager = &rManager;
pImpl->nMode = CONFIG_MODE_IMMEDIATE_UPDATE; // does not allow exceptions
@@ -310,7 +309,7 @@ ConfigItem::~ConfigItem()
{
if(pImpl->pManager)
{
- RemoveListener();
+ RemoveChangesListener();
pImpl->pManager->RemoveConfigItem(*this);
}
delete pImpl;
@@ -337,7 +336,7 @@ void ConfigItem::ReleaseConfigMgr()
}
CATCH_INFO("Exception from commitChanges(): ")
}
- RemoveListener();
+ RemoveChangesListener();
OSL_ENSURE(pImpl->pManager, "ConfigManager already released");
pImpl->pManager = 0;
}
@@ -352,7 +351,7 @@ void ConfigItem::CallNotify( const com::sun::star::uno::Sequence<OUString>& rPro
/* -----------------------------29.08.00 12:52--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::Notify( const com::sun::star::uno::Sequence<OUString>& rPropertyNames)
+void ConfigItem::Notify( const com::sun::star::uno::Sequence<OUString>& /*rPropertyNames*/)
{
OSL_ENSURE(sal_False, "Base class called");
}
@@ -771,7 +770,7 @@ sal_Bool ConfigItem::PutProperties( const Sequence< OUString >& rNames,
void ConfigItem::DisableNotification()
{
OSL_ENSURE( xChangeLstnr.is(), "ConfigItem::DisableNotification: notifications not enabled currently!" );
- RemoveListener();
+ RemoveChangesListener();
}
/* -----------------------------29.08.00 16:19--------------------------------
@@ -806,7 +805,7 @@ sal_Bool ConfigItem::EnableNotification(const Sequence< OUString >& rNames,
/* -----------------------------29.08.00 16:47--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::RemoveListener()
+void ConfigItem::RemoveChangesListener()
{
Reference<XChangesNotifier> xChgNot(m_xHierarchyAccess, UNO_QUERY);
if(xChgNot.is() && xChangeLstnr.is())