Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv7262/src/classes
Modified Files:
Profile.cpp
Log Message:
added a couple of asserts
Index: Profile.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/Profile.cpp,v
retrieving revision 1.144
retrieving revision 1.145
diff -b -u -2 -r1.144 -r1.145
--- Profile.cpp 30 Aug 2003 23:47:47 -0000 1.144
+++ Profile.cpp 9 Sep 2003 10:22:39 -0000 1.145
@@ -544,4 +544,6 @@
String GetFullPath(const String& name) const
{
+ ASSERT_MSG( !name.empty(), _T("empty name in Profile::GetFullPath()?") );
+
return GetName() + _T('/') + name;
}
@@ -603,6 +605,5 @@
Identity(const String & name)
{
- m_ProfileName = GetRootPath();
- m_ProfileName << '/' << name;
+ m_ProfileName << GetRootPath() << _T('/') << name;
}
@@ -638,6 +639,5 @@
FilterProfile(const String & name)
{
- m_ProfileName = GetRootPath();
- m_ProfileName << '/' << name;
+ m_ProfileName << GetRootPath() << _T('/') << name;
}
@@ -748,4 +748,7 @@
{
const String& key = data.GetKey();
+ ASSERT_MSG( !key.empty() && key[0u] != _T('/'),
+ _T("invalid key in AllConfigSources::Read()") );
+
String fullpath = path + _T('/') + key;
const bool isNumeric = data.GetType() == LookupData::LD_LONG;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates