Kaydet (Commit) d17279e6 authored tarafından Caolán McNamara's avatar Caolán McNamara

ditch unused stream operators

üst f1251f68
...@@ -98,9 +98,6 @@ public: ...@@ -98,9 +98,6 @@ public:
sal_Bool FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& ); sal_Bool FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
void FillSequence( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& ); void FillSequence( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
SVL_DLLPUBLIC friend SvStream& operator >> ( SvStream& rStm, SvCommandList & );
SVL_DLLPUBLIC friend SvStream& operator << ( SvStream&, const SvCommandList & );
size_t size() const { return aCommandList.size(); } size_t size() const { return aCommandList.size(); }
SvCommand operator[]( size_t i) { SvCommand operator[]( size_t i) {
......
...@@ -166,64 +166,6 @@ SvCommand & SvCommandList::Append ...@@ -166,64 +166,6 @@ SvCommand & SvCommandList::Append
return aCommandList.back(); return aCommandList.back();
} }
//=========================================================================
SvStream & operator >>
(
SvStream & rStm, /* Stream aus dem gelesen wird */
SvCommandList & rThis /* Die zu f"ullende Liste */
)
/* [Beschreibung]
Die Liste mit ihren Elementen wird gelesen. Das Format ist:
1. Anzahl der Elemente
2. Alle Elemente
[R"uckgabewert]
SvStream & Der "ubergebene Stream.
*/
{
sal_uInt32 nCount = 0;
rStm >> nCount;
if( !rStm.GetError() )
{
while( nCount-- )
{
SvCommand aCmd;
rStm >> aCmd;
rThis.aCommandList.push_back( aCmd );
}
}
return rStm;
}
//=========================================================================
SvStream & operator <<
(
SvStream & rStm, /* Stream in den geschrieben wird */
const SvCommandList & rThis /* Die zu schreibende Liste */
)
/* [Beschreibung]
Die Liste mit ihren Elementen wir geschrieben. Das Format ist:
1. Anzahl der Elemente
2. Alle Elemente
[R"uckgabewert]
SvStream & Der "ubergebene Stream.
*/
{
sal_uInt32 nCount = rThis.aCommandList.size();
rStm << nCount;
for( sal_uInt32 i = 0; i < nCount; i++ )
{
rStm << rThis.aCommandList[ i ];
}
return rStm;
}
sal_Bool SvCommandList::FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& aCommandSequence ) sal_Bool SvCommandList::FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& aCommandSequence )
{ {
const sal_Int32 nCount = aCommandSequence.getLength(); const sal_Int32 nCount = aCommandSequence.getLength();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment