Revision: 7435
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7435&view=rev
Author:   vadz
Date:     2008-05-01 16:03:32 -0700 (Thu, 01 May 2008)

Log Message:
-----------
 no real changes, just use "const Profile *" when possible instead of "Profile 
*"

Modified Paths:
--------------
    trunk/M/include/Address.h
    trunk/M/include/Mdefaults.h
    trunk/M/src/classes/Moptions.cpp

Modified: trunk/M/include/Address.h
===================================================================
--- trunk/M/include/Address.h   2008-04-29 11:49:26 UTC (rev 7434)
+++ trunk/M/include/Address.h   2008-05-01 23:03:32 UTC (rev 7435)
@@ -109,7 +109,7 @@
       The address is constructed using the personal name, host name and default
       domain (if necessary) options.
     */
-   static String GetSenderAddress(Profile *profile);
+   static String GetSenderAddress(const Profile *profile);
 
    /**
       Returns true if the address matches any of the entries in the array.

Modified: trunk/M/include/Mdefaults.h
===================================================================
--- trunk/M/include/Mdefaults.h 2008-04-29 11:49:26 UTC (rev 7434)
+++ trunk/M/include/Mdefaults.h 2008-05-01 23:03:32 UTC (rev 7435)
@@ -227,16 +227,16 @@
 // ----------------------------------------------------------------------------
 
 /// read the option value from the profile
-extern MOptionValue GetOptionValue(Profile *profile, const MOption opt);
+extern MOptionValue GetOptionValue(const Profile *profile, const MOption opt);
 
 /// read the numeric option value from the profile
-extern long GetNumericOptionValue(Profile *profile, const MOption opt);
+extern long GetNumericOptionValue(const Profile *profile, const MOption opt);
 
 /**
    Return the font family from the profile font setting: this does some checks
    to ensure that it is correct.
  */
-extern int GetFontFamilyFromProfile(Profile *profile, const MOption option);
+extern int GetFontFamilyFromProfile(const Profile *profile, const MOption 
option);
 
 // from the given profile
 #define READ_CONFIG(profile, opt) GetOptionValue(profile, opt)

Modified: trunk/M/src/classes/Moptions.cpp
===================================================================
--- trunk/M/src/classes/Moptions.cpp    2008-04-29 11:49:26 UTC (rev 7434)
+++ trunk/M/src/classes/Moptions.cpp    2008-05-01 23:03:32 UTC (rev 7435)
@@ -919,7 +919,7 @@
 // global functions
 // ----------------------------------------------------------------------------
 
-extern MOptionValue GetOptionValue(Profile *profile, const MOption opt)
+extern MOptionValue GetOptionValue(const Profile *profile, const MOption opt)
 {
    MOptionValue value;
    CHECK( profile, value, _T("NULL profile") );
@@ -933,7 +933,7 @@
    return value;
 }
 
-extern long GetNumericOptionValue(Profile *profile, const MOption opt)
+extern long GetNumericOptionValue(const Profile *profile, const MOption opt)
 {
    CHECK( profile, -1, _T("NULL profile") );
 
@@ -965,7 +965,7 @@
    return MOptions[opt.GetId()].value.s;
 }
 
-extern int GetFontFamilyFromProfile(Profile *profile, const MOption option)
+extern int GetFontFamilyFromProfile(const Profile *profile, const MOption 
option)
 {
    static const int fontFamilies[] =
    {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to