summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:45:42 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:45:42 +0000
commit72aeb52f7f3e3c20bdb1401134281d638612307c (patch)
tree73bfef62798dbb6bd1828d9823fea49af4270bc4 /forms/source/component
parent1b0cb8232626105b976073a48ee2208889d6736f (diff)
INTEGRATION: CWS warnings01 (1.21.68); FILE MERGED
2006/05/29 11:48:43 sb 1.21.68.4: #i53898# Made code warning-free and/or compile at all after resync to SRC680m170. 2006/05/23 17:37:06 sb 1.21.68.3: RESYNC: (1.21-1.22); FILE MERGED 2006/05/12 16:35:06 sb 1.21.68.2: #i53898# Made code warning-free and/or compile at all after resync to SRC680m162. 2006/03/14 15:20:24 fs 1.21.68.1: #i57457# warning-free code
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/Columns.cxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx
index 53ea90b5e194..133deb488f77 100644
--- a/forms/source/component/Columns.cxx
+++ b/forms/source/component/Columns.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: Columns.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: vg $ $Date: 2006-03-31 11:58:02 $
+ * last change: $Author: hr $ $Date: 2006-06-19 12:45:42 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,6 +45,7 @@
#ifndef _FRM_IDS_HXX_
#include "ids.hxx"
#endif
+#include "findpos.hxx"
#ifndef _COM_SUN_STAR_IO_XPERSISTOBJECT_HPP_
#include <com/sun/star/io/XPersistObject.hpp>
@@ -93,10 +94,6 @@
#include <rtl/memory.h>
#endif
-namespace internal {
-sal_Int32 findPos(const ::rtl::OUString& aStr, const StringSequence& rList);
-}
-
//.........................................................................
namespace frm
{
@@ -149,8 +146,10 @@ sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName)
else
{
sal_Int32 nPrefixPos = aModelName.indexOf(aModelPrefix);
- sal_Int32 nCampatiblePrefixPos = aModelName.indexOf(aCompatibleModelPrefix);
- DBG_ASSERT( (nPrefixPos != -1) || (nCampatiblePrefixPos != -1),
+#ifdef DBG_UTIL
+ sal_Int32 nCompatiblePrefixPos = aModelName.indexOf(aCompatibleModelPrefix);
+#endif
+ DBG_ASSERT( (nPrefixPos != -1) || (nCompatiblePrefixPos != -1),
"::getColumnTypeByModelName() : wrong servivce !");
::rtl::OUString aColumnType = (nPrefixPos != -1)
@@ -158,7 +157,7 @@ sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName)
: aModelName.copy(aCompatibleModelPrefix.getLength());
const StringSequence& rColumnTypes = getColumnTypes();
- nTypeId = ::internal::findPos(aColumnType, rColumnTypes);
+ nTypeId = ::detail::findPos(aColumnType, rColumnTypes);
}
return nTypeId;
}
@@ -251,9 +250,9 @@ DBG_NAME(OGridColumn);
OGridColumn::OGridColumn(const Reference<XMultiServiceFactory>& _rxFactory, const ::rtl::OUString& _sModelName)
:OGridColumn_BASE(m_aMutex)
,OPropertySetAggregationHelper(OGridColumn_BASE::rBHelper)
- ,m_aModelName(_sModelName)
,m_aHidden( makeAny( sal_False ) )
,m_xORB( _rxFactory )
+ ,m_aModelName(_sModelName)
{
DBG_CTOR(OGridColumn,NULL);
@@ -287,10 +286,10 @@ OGridColumn::OGridColumn(const Reference<XMultiServiceFactory>& _rxFactory, cons
}
//------------------------------------------------------------------------------
-OGridColumn::OGridColumn( const OGridColumn* _pOriginal, const Reference< XMultiServiceFactory>& _rxFactory )
+OGridColumn::OGridColumn( const OGridColumn* _pOriginal )
:OGridColumn_BASE( m_aMutex )
,OPropertySetAggregationHelper( OGridColumn_BASE::rBHelper )
- ,m_xORB( _rxFactory )
+ ,m_xORB( _pOriginal->m_xORB )
{
DBG_CTOR(OGridColumn,NULL);
@@ -606,7 +605,7 @@ Reference< XCloneable > SAL_CALL OGridColumn::createClone( ) throw (RuntimeExce
//------------------------------------------------------------------------------
OGridColumn* OGridColumn::createCloneColumn() const
{
- return new OGridColumn( this, m_xORB );
+ return new OGridColumn( this );
}
//XPersistObject
@@ -677,7 +676,7 @@ void SAL_CALL OGridColumn::read(const Reference<XObjectInputStream>& _rxInStream
}
// 2. Lesen des Versionsnummer
- sal_uInt16 nVersion = _rxInStream->readShort();
+ sal_uInt16 nVersion = _rxInStream->readShort(); (void)nVersion;
sal_uInt16 nAnyMask = _rxInStream->readShort();
if (nAnyMask & WIDTH)