~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-security

« back to all changes in this revision

Viewing changes to calendar/base/src/calDuration.cpp

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-20 13:46:11 UTC
  • mfrom: (1.2.1)
  • mto: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20120420134611-i0dkosnbmihrd0lr
Tags: upstream-1.4+build1
ImportĀ upstreamĀ versionĀ 1.4+build1

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
NS_IMPL_ISUPPORTS1_CI(calDuration, calIDuration)
57
57
 
58
58
calDuration::calDuration()
59
 
    : mImmutable(PR_FALSE)
 
59
    : mImmutable(false)
60
60
{
61
61
    Reset();
62
62
}
71
71
    mDuration.seconds = cdt.mDuration.seconds;
72
72
 
73
73
    // copies are always mutable
74
 
    mImmutable = PR_FALSE;
 
74
    mImmutable = false;
75
75
}
76
76
 
77
77
calDuration::calDuration(const struct icaldurationtype * const aDurationPtr)
78
 
    : mImmutable(PR_FALSE)
 
78
    : mImmutable(false)
79
79
{
80
80
    FromIcalDuration(aDurationPtr);
81
81
}
92
92
NS_IMETHODIMP
93
93
calDuration::MakeImmutable()
94
94
{
95
 
    mImmutable = PR_TRUE;
 
95
    mImmutable = true;
96
96
    return NS_OK;
97
97
}
98
98