BDateField is already used in ColumnListView, so use another name for this enum.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37518 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
57500c639c
commit
a7e183f8e5
@ -26,7 +26,7 @@ typedef enum {
|
||||
B_HOUR,
|
||||
B_MINUTE,
|
||||
B_SECOND
|
||||
} BDateField;
|
||||
} BDateElement;
|
||||
|
||||
|
||||
class BCountry {
|
||||
@ -53,7 +53,7 @@ class BCountry {
|
||||
bool longFormat);
|
||||
status_t FormatTime(BString* string, int*& fieldPositions,
|
||||
int& fieldCount, time_t time, bool longFormat);
|
||||
status_t TimeFields(BDateField*& fields, int& fieldCount,
|
||||
status_t TimeFields(BDateElement*& fields, int& fieldCount,
|
||||
bool longFormat);
|
||||
|
||||
bool DateFormat(BString&, bool longFormat) const;
|
||||
|
@ -241,7 +241,7 @@ BCountry::FormatTime(BString* string, int*& fieldPositions, int& fieldCount,
|
||||
|
||||
|
||||
status_t
|
||||
BCountry::TimeFields(BDateField*& fields, int& fieldCount, bool longFormat)
|
||||
BCountry::TimeFields(BDateElement*& fields, int& fieldCount, bool longFormat)
|
||||
{
|
||||
fields = NULL;
|
||||
UErrorCode error = U_ZERO_ERROR;
|
||||
@ -264,7 +264,7 @@ BCountry::TimeFields(BDateField*& fields, int& fieldCount, bool longFormat)
|
||||
fieldCount ++;
|
||||
}
|
||||
|
||||
fields = (BDateField*) malloc(fieldCount * sizeof(BDateField));
|
||||
fields = (BDateElement*) malloc(fieldCount * sizeof(BDateElement));
|
||||
|
||||
for (int i = 0 ; i < fieldCount ; i++ ) {
|
||||
switch (fieldPosStorage[i]) {
|
||||
|
@ -269,7 +269,7 @@ TTimeEdit::BuildDispatch(BMessage *message)
|
||||
|
||||
message->AddBool("time", true);
|
||||
|
||||
BDateField* dateFormat;
|
||||
BDateElement* dateFormat;
|
||||
int fieldCount;
|
||||
BCountry* here;
|
||||
be_locale_roster->GetDefaultCountry(&here);
|
||||
@ -297,7 +297,7 @@ void
|
||||
TTimeEdit::_CheckRange()
|
||||
{
|
||||
int32 value = fHoldValue;
|
||||
BDateField* fields;
|
||||
BDateElement* fields;
|
||||
int fieldCount;
|
||||
BCountry* here;
|
||||
be_locale_roster->GetDefaultCountry(&here);
|
||||
@ -363,7 +363,7 @@ bool
|
||||
TTimeEdit::_IsValidDoubleDigi(int32 value)
|
||||
{
|
||||
bool isInRange = false;
|
||||
BDateField* fields;
|
||||
BDateElement* fields;
|
||||
int fieldCount;
|
||||
BCountry* here;
|
||||
be_locale_roster->GetDefaultCountry(&here);
|
||||
@ -402,7 +402,7 @@ int32
|
||||
TTimeEdit::_SectionValue(int32 index) const
|
||||
{
|
||||
int32 value;
|
||||
BDateField* fields;
|
||||
BDateElement* fields;
|
||||
int fieldCount;
|
||||
BCountry* here;
|
||||
be_locale_roster->GetDefaultCountry(&here);
|
||||
|
Loading…
x
Reference in New Issue
Block a user