Closed Bug 290761 Opened 20 years ago Closed 20 years ago

calIDateTime: rename valid to isValid

Categories

(Calendar :: Internal Components, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: vlad)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: trunk

Most of the boolean properties are named isXXX, such as 
  isMutable
  isDate
  isUTC

Suggest that calIDateTime.valid should be calIDateTime.isValid

(Consistency is more important when there is no name-checking compiler, as in
javascript.)

Reproducible: Always

Steps to Reproduce:
Agreed; Vlad, if you also agree, can you make it so?
Assignee: shaver → vladimir
(patch -l -p 2 -i file.patch)

patches 
  .valid to .isValid
  GetValid to GetIsValid
in
  mozilla/calendar/base/public/calIDateTime.idl
  mozilla/calendar/base/src/calDateTime.cpp
  mozilla/calendar/base/src/calICSService.cpp
  mozilla/calendar/base/src/calItemBase.js
  mozilla/calendar/providers/caldav/calDavCalendar.js
  mozilla/calendar/providers/memory/calMemoryCalendar.js
  mozilla/calendar/resources/content/eventDialog.js

(untested)
Attachment #182277 - Flags: first-review?
Comment on attachment 182277 [details] [diff] [review]
rename calIDateTime.valid to calIDateTime.isValid

asking review from a specific person is generally prefered...
Attachment #182277 - Flags: first-review? → first-review?(vladimir)
Comment on attachment 182277 [details] [diff] [review]
rename calIDateTime.valid to calIDateTime.isValid

r=vladimir, I assume that's all the uses of .valid in the calendar tree?
Attachment #182277 - Flags: first-review?(vladimir) → first-review+
patch checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You missed a couple of spots (mValid -> mIsValid)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: