From c843f40ff3e6e28e20c3b4c68172d9e69be9885d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 2 Jan 2005 14:10:16 +0000 Subject: Added unit tests for 'utility::path'. --- src/utility/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utility') diff --git a/src/utility/path.cpp b/src/utility/path.cpp index b7651615..03ce6098 100644 --- a/src/utility/path.cpp +++ b/src/utility/path.cpp @@ -150,7 +150,7 @@ const bool path::isEmpty() const const path::component path::getLastComponent() const { - return (isEmpty() ? component("") : m_list[m_list.size() - 1]); + return (m_list[m_list.size() - 1]); } -- cgit