Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9530/include

Modified Files:
        ConfigSource.h 
Log Message:
save correct, user-readable name in ConfigSource object

Index: ConfigSource.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/ConfigSource.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -u -2 -r1.12 -r1.13
--- ConfigSource.h      5 Jul 2005 12:34:13 -0000       1.12
+++ ConfigSource.h      6 Jul 2005 22:03:45 -0000       1.13
@@ -144,5 +144,5 @@
    //@{
 
-   /// Get the name of this object
+   /// Get the (user-readable) name of this object
    const String& GetName() const { return m_name; }
 
@@ -329,5 +329,6 @@
    /// Constrructor is protected, you can only create derived classes
    ConfigSource(const String& name, const String& type)
-      : m_name(name), m_type(type)
+      : m_name(name.empty() ? _("Local") : name.AfterLast(_T('/'))),
+        m_type(type)
    {
    }



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to