CVS commit by domi: remove the defective operator| and operator& implementations for the Objects class M +5 -0 ChangeLog 1.81 M +0 -18 misc/objects.h 1.29 M +1 -1 modes/normal.cc 1.38 --- kdeedu/kig/modes/normal.cc #1.37:1.38 @@ -168,5 +168,5 @@ void NormalMode::dragObject( const Objec { // first determine what to move... - if( ( oco & sos ).empty() ) + if( !sos.contains( oco.front() ) ) { // the user clicked on something that is currently not --- kdeedu/kig/misc/objects.h #1.28:1.29 @@ -131,22 +131,4 @@ void myvector::remove( const T& o ) } -template -myvector operator&( const myvector& o, const myvector& s ) -{ - myvector result; - std::set_intersection( o.begin(), o.end(), s.begin(), s.end(), - std::back_inserter( result ) ); - return result; -} - -template -myvector operator|( const myvector& o, const myvector& s ) -{ - myvector result; - std::set_union( o.begin(), o.end(), s.begin(), s.end(), - std::back_inserter( result ) ); - return result; -} - template void delete_all( iter current, iter end ) --- kdeedu/kig/ChangeLog #1.80:1.81 @@ -1,2 +1,7 @@ +2003-09-01 Dominique Devriese + + * remove the defective operator| and operator& implementations for + the Objects class + 2003-08-31 Dominique Devriese