diff --git a/tutorials/cont/TListAndSTL.C b/tutorials/cont/TListAndSTL.C index 66afe3007da794e0b4263689f55477edad11bbc5..15ba708d4a30843079f2689cef3960007e3f00f4 100644 --- a/tutorials/cont/TListAndSTL.C +++ b/tutorials/cont/TListAndSTL.C @@ -78,12 +78,9 @@ void TListAndSTL() string strToFind("test string #4"); SFind func(strToFind.c_str()); - - TIterCategory<TList> iter_cat(&stringList); - TIterCategory<TList> found( - find_if(iter_cat.Begin(), TIterCategory<TList>::End(), func) - ); + TIterCategory<TList> found + = find_if(iter_cat.Begin(), TIterCategory<TList>::End(), func); // Checking the result if (!(*found)) {