You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/08/05 16:02:45 UTC

svn commit: r1510483 - /openoffice/trunk/main/stlport/systemstl/slist

Author: hdu
Date: Mon Aug  5 14:02:45 2013
New Revision: 1510483

URL: http://svn.apache.org/r1510483
Log:
#i122959# prevent use of the insert method in the single linked list

Modified:
    openoffice/trunk/main/stlport/systemstl/slist

Modified: openoffice/trunk/main/stlport/systemstl/slist
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/stlport/systemstl/slist?rev=1510483&r1=1510482&r2=1510483&view=diff
==============================================================================
--- openoffice/trunk/main/stlport/systemstl/slist (original)
+++ openoffice/trunk/main/stlport/systemstl/slist Mon Aug  5 14:02:45 2013
@@ -62,12 +62,11 @@ public:
 	typedef typename STLP4_SLIST_EMUBASE<T,A> _super;
 	typedef typename _super::iterator slist_mit;
 	typedef typename _super::const_iterator slist_cit;
-#ifndef STLP4_SLIST_WITH_LIST
-	slist_mit insert( slist_cit aI, const T& rT) { return _super::insert_after( aI, rT); }
-#else
-private:
-	size_t size() const; // prevent use of slist::size() as forward_list doesn't have a size() method
-#endif
+
+private: // prevent the use of methods not available in forward_list
+	// signatures are intentionally mismatched to catch invocations
+	size_t size() const;
+	void insert( void) const;
 };
 
 }