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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-30 01:11:42 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20120430011142-3hdy7lx3odmsjdv2
Tags: 1.4+build1-0ubuntu0.11.10.2
* New upstream stable release (CALENDAR_1_4_BUILD1)
  - LP: #987305
* Fix build with unversioned SDK path
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
NS_IMPL_ISUPPORTS2_CI(calRecurrenceDateSet, calIRecurrenceItem, calIRecurrenceDateSet)
56
56
 
57
57
calRecurrenceDateSet::calRecurrenceDateSet()
58
 
    : mImmutable(PR_FALSE),
59
 
      mIsNegative(PR_FALSE),
60
 
      mSorted(PR_FALSE)
 
58
    : mImmutable(false),
 
59
      mIsNegative(false),
 
60
      mSorted(false)
61
61
{
62
62
}
63
63
 
76
76
    if (mImmutable)
77
77
        return NS_ERROR_FAILURE; // XXX another error code
78
78
 
79
 
    mImmutable = PR_TRUE;
 
79
    mImmutable = true;
80
80
    return NS_OK;
81
81
}
82
82
 
130
130
calRecurrenceDateSet::GetIsFinite(bool *_retval)
131
131
{
132
132
    NS_ENSURE_ARG_POINTER(_retval);
133
 
    *_retval = PR_TRUE;
 
133
    *_retval = true;
134
134
    return NS_OK;
135
135
}
136
136
 
169
169
        mDates.AppendObject(aDates[i]);
170
170
    }
171
171
 
172
 
    mSorted = PR_FALSE;
 
172
    mSorted = false;
173
173
 
174
174
    return NS_OK;
175
175
}
181
181
 
182
182
    mDates.AppendObject(aDate);
183
183
 
184
 
    mSorted = PR_FALSE;
 
184
    mSorted = false;
185
185
 
186
186
    return NS_OK;
187
187
}
201
201
{
202
202
    if (!mSorted) {
203
203
        mDates.Sort(calDateTimeComparator, nsnull);
204
 
        mSorted = PR_TRUE;
 
204
        mSorted = true;
205
205
    }
206
206
}
207
207