Changeset 163

Show
Ignore:
Timestamp:
03/16/08 12:42:43 (4 months ago)
Author:
cyrusdaboo
Message:

Fix some compiler warnings.

Location:
Mulberry/branches/v4.1d1/MacOS/Sources
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Address_Book_Manager/CAdbkManagerTable.cp

    r97 r163  
    302302                                        outEnabled = true; 
    303303                                        outUsesMark = true; 
    304                                         outMark = adbk->GetProtocol()->IsLoggedOn() ? checkMark : noMark; 
     304                                        outMark = adbk->GetProtocol()->IsLoggedOn() ? (UInt16)checkMark : (UInt16)noMark; 
    305305                                        ::GetIndString(outName, STRx_Standards, !outMark ? str_Logon : str_Logoff); 
    306306                                } 
     
    322322                                        outEnabled = true; 
    323323                                        outUsesMark = true; 
    324                                         outMark = !adbk->GetProtocol()->IsDisconnected() ? checkMark : noMark; 
     324                                        outMark = !adbk->GetProtocol()->IsDisconnected() ? (UInt16)checkMark : (UInt16)noMark; 
    325325                                        ::GetIndString(outName, STRx_Standards, !outMark ? str_Logon : str_Logoff); 
    326326                                } 
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Calendar_Store_View/CCalendarStoreTable.cp

    r160 r163  
    281281                                        outEnabled = true; 
    282282                                        outUsesMark = true; 
    283                                         outMark = node->GetProtocol()->IsLoggedOn() ? checkMark : noMark; 
     283                                        outMark = node->GetProtocol()->IsLoggedOn() ? (UInt16)checkMark : (UInt16)noMark; 
    284284                                        ::GetIndString(outName, STRx_Standards, !outMark ? str_Logon : str_Logoff); 
    285285                                } 
     
    301301                                        outEnabled = true; 
    302302                                        outUsesMark = true; 
    303                                         outMark = !node->GetProtocol()->IsDisconnected() ? checkMark : noMark; 
     303                                        outMark = !node->GetProtocol()->IsDisconnected() ? (UInt16)checkMark : (UInt16)noMark; 
    304304                                        ::GetIndString(outName, STRx_Standards, !outMark ? str_Logon : str_Logoff); 
    305305                                } 
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/ToDo_View/CToDoItem.cp

    r111 r163  
    212212                outEnabled = (mType == eToDo); 
    213213                outUsesMark = true; 
    214                 outMark = mIsCompleted ? checkMark : noMark; 
     214                outMark = mIsCompleted ? (UInt16)checkMark : (UInt16)noMark; 
    215215                break; 
    216216 
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/CPrefsAccount.cp

    r150 r163  
    449449                                        } 
    450450                                        acct->SetName(new_name); 
    451                                         mCopyPrefs->mRemoteAccounts.Value().push_back(acct); 
     451                                        mCopyPrefs->mRemoteAccounts.Value().push_back((COptionsAccount*)acct); 
    452452                                        mCopyPrefs->mRemoteAccounts.SetDirty(); 
    453453                                        insert_pos = mCopyPrefs->mMailAccounts.GetValue().size() + 
  • Mulberry/branches/v4.1d1/MacOS/Sources/More ATSUI/ATSUTextConversion.cp

    r74 r163  
    652652                        returnValue = ATSUFindFontFromName(     fontName, 
    653653                                                                                                        theSize, 
    654                                                                                                         3,      //      kFontUniqueName,        (constant missing from SFNTTypes.h) 
    655                                                                                                         -1, // kFontNoPlatform,         (constant missing from SFNTTypes.h) 
    656                                                                                                         -1, // kFontNoScript,           (constant missing from SFNTTypes.h) 
    657                                                                                                         -1, // kFontNoLanguage,         (constant missing from SFNTTypes.h) 
     654                                                                                                        kFontUniqueName, 
     655                                                                                                        kFontNoPlatformCode, 
     656                                                                                                        kFontNoScriptCode, 
     657                                                                                                        kFontNoLanguageCode, 
    658658                                                                                                        &theFontID ); 
    659659                        if ( returnValue == noErr && theFontID != kATSUInvalidFontID ) { 
     
    831831        if ( returnValue != kATSUNoCorrespondingFontErr && theFontID != kATSUInvalidFontID )  
    832832                returnValue = ATSUFindFontName( theFontID,  
    833                                                 3,      //      kFontUniqueName,        (constant missing from SFNTTypes.h) 
    834                                                 -1, // kFontNoPlatform,         (constant missing from SFNTTypes.h) 
    835                                                 -1, // kFontNoScript,           (constant missing from SFNTTypes.h) 
    836                                                 -1, // kFontNoLanguage,         (constant missing from SFNTTypes.h) 
     833                                                kFontUniqueName, 
     834                                                kFontNoPlatformCode, 
     835                                                kFontNoScriptCode, 
     836                                                kFontNoLanguageCode, 
    837837                                                kMaximumNameLength,  
    838838                                                Ptr( fontName ),  
  • Mulberry/branches/v4.1d1/MacOS/Sources/More ATSUI/MoreATSUnicodeFonts.cp

    r74 r163  
    874874                // First see if there are any names at all with the given code. 
    875875                // Remember the info for that name - it'll be our first guess. 
    876                 status = ATSUFindFontName( theFont, iNameCode, kFontNoPlatform, kFontNoScript, kFontNoLanguage, 
     876                status = ATSUFindFontName( theFont, iNameCode, kFontNoPlatformCode, kFontNoScriptCode, kFontNoLanguageCode, 
    877877                                                                   0, NULL, NULL, &bestIndex ); 
    878878                if ( status == noErr ) {