namespace PT renamed to pt
This commit is contained in:
@@ -46,7 +46,7 @@ namespace GroupItem
|
||||
|
||||
|
||||
|
||||
PT::Space * Groups::GetSpace()
|
||||
pt::Space * Groups::GetSpace()
|
||||
{
|
||||
return &space;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ void Groups::Reindex()
|
||||
{
|
||||
while( seti < space.child_spaces->size() )
|
||||
{
|
||||
PT::Space & sp = *(*space.child_spaces)[seti];
|
||||
pt::Space & sp = *(*space.child_spaces)[seti];
|
||||
|
||||
if( sp.name )
|
||||
{
|
||||
@@ -85,7 +85,7 @@ void Groups::Reindex()
|
||||
}
|
||||
|
||||
|
||||
void Groups::ReindexGroups(GroupIndex & group_index, PT::Space & set)
|
||||
void Groups::ReindexGroups(GroupIndex & group_index, pt::Space & set)
|
||||
{
|
||||
size_t i, v;
|
||||
|
||||
@@ -94,7 +94,7 @@ size_t i, v;
|
||||
// loop through all groups in the set
|
||||
for( i=0 ; i < set.child_spaces->size() ; ++i )
|
||||
{
|
||||
PT::Space & group = *(*set.child_spaces)[i];
|
||||
pt::Space & group = *(*set.child_spaces)[i];
|
||||
// !! IMPROVE ME will be safer to copy the value out
|
||||
// if we used accidently the group.Text later the key
|
||||
// would be overwritten
|
||||
@@ -141,7 +141,7 @@ size_t i, v;
|
||||
}
|
||||
|
||||
|
||||
void Groups::SortValues(PT::Space & group)
|
||||
void Groups::SortValues(pt::Space & group)
|
||||
{
|
||||
sort_by = group.to_wstr(L"sort_by");
|
||||
sort_asc = group.is_equal(L"sort_asc", L"true");
|
||||
@@ -154,7 +154,7 @@ void Groups::SortValues(PT::Space & group)
|
||||
}
|
||||
|
||||
|
||||
bool Groups::SortFunHelper::operator()(PT::Space * sp1, PT::Space * sp2)
|
||||
bool Groups::SortFunHelper::operator()(pt::Space * sp1, pt::Space * sp2)
|
||||
{
|
||||
const std::wstring * val1 = sp1->get_wstr(groups->sort_by.c_str());
|
||||
const std::wstring * val2 = sp2->get_wstr(groups->sort_by.c_str());
|
||||
@@ -208,11 +208,11 @@ const std::wstring & Groups::GetOption(size_t seti, size_t groupi, size_t valuei
|
||||
{
|
||||
if( space.child_spaces && seti < space.child_spaces->size() )
|
||||
{
|
||||
PT::Space & groups = *(*space.child_spaces)[seti];
|
||||
pt::Space & groups = *(*space.child_spaces)[seti];
|
||||
|
||||
if( groups.child_spaces && groupi < groups.child_spaces->size() )
|
||||
{
|
||||
PT::Space & value = *(*groups.child_spaces)[groupi];
|
||||
pt::Space & value = *(*groups.child_spaces)[groupi];
|
||||
|
||||
if( value.child_spaces && valuei < value.child_spaces->size() )
|
||||
{
|
||||
@@ -239,7 +239,7 @@ size_t Groups::Size(size_t seti, size_t groupi)
|
||||
{
|
||||
if( space.child_spaces && seti < space.child_spaces->size() )
|
||||
{
|
||||
PT::Space & groups = *(*space.child_spaces)[seti];
|
||||
pt::Space & groups = *(*space.child_spaces)[seti];
|
||||
|
||||
if( groups.child_spaces && groupi < groups.child_spaces->size() )
|
||||
return (*groups.child_spaces)[groupi]->child_spaces->size();
|
||||
|
Reference in New Issue
Block a user