From b3ecf0eb02e12a34d4d429231494b180e9cb2f1f Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Thu, 26 Apr 2007 10:57:13 +0000
Subject: [PATCH] BugID: 992

Fixed coding bug which only surfaced when compiling with -D_GLIBCXX_DEBUG.
---
 LCS/Common/test/tStringUtil.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/LCS/Common/test/tStringUtil.cc b/LCS/Common/test/tStringUtil.cc
index 8e92e9ef262..ad5fd30ecfc 100644
--- a/LCS/Common/test/tStringUtil.cc
+++ b/LCS/Common/test/tStringUtil.cc
@@ -64,7 +64,8 @@ bool testSplit()
 
 bool testCompare(bool nocase)
 {
-  set<string, StringUtil::Compare> 
+  typedef set<string, StringUtil::Compare> set_type;
+  set_type 
     s(nocase ? StringUtil::Compare::NOCASE : StringUtil::Compare::NORMAL);
   s.insert("Alfons");
   s.insert("aap");
@@ -74,7 +75,7 @@ bool testCompare(bool nocase)
   s.insert("chocolade");
   if (nocase) cout << "=== Strings sorted NOCASE ===" << endl;
   else cout << "=== Strings sorted NORMAL ===" << endl;
-  for (set<string>::const_iterator it = s.begin(); it != s.end(); ++it) {
+  for (set_type::const_iterator it = s.begin(); it != s.end(); ++it) {
     cout << *it << endl;
   }
   cout << endl;
-- 
GitLab