Skip to content

Commit d5d013d

Browse files
committed
Use Loki::EmptyType instead of Loki::NullType
1 parent 918218f commit d5d013d

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

src/xrGame/alife_registry_container.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RegistryHelper
5353
}
5454

5555
template <>
56-
static void Load<Loki::NullType>(TContainer* self, IReader& reader)
56+
static void Load<Loki::EmptyType>(TContainer* self, IReader& reader)
5757
{
5858
}
5959

@@ -64,7 +64,7 @@ class RegistryHelper
6464
}
6565

6666
template <>
67-
static void Save<Loki::NullType>(TContainer* self, IWriter& writer)
67+
static void Save<Loki::EmptyType>(TContainer* self, IWriter& writer)
6868
{
6969
}
7070

src/xrGame/base_client_classes_wrappers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct heritage
3434
{
3535
};
3636

37-
typedef Loki::Typelist<_1, Loki::Typelist<_2, Loki::NullType>> tl;
37+
typedef Loki::Typelist<_1, Loki::Typelist<_2, Loki::EmptyType>> tl;
3838
typedef typename Loki::TL::Erase<tl, Loki::EmptyType>::Result pure_tl;
3939
typedef typename Loki::GenLinearHierarchy<pure_tl, linear_registrator> result;
4040
};

src/xrGame/game_state_accumulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class game_state_accumulator : public game_events_handler
9696
template <typename TypeListElement>
9797
void init_acpv_list();
9898
template <>
99-
void init_acpv_list<Loki::NullType>(){};
99+
void init_acpv_list<Loki::EmptyType>(){};
100100

101101
void update_average_values();
102102
void update_accumulative_values();

src/xrServerEntities/smart_cast_impl0.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ struct CTypeHelper
4141
};
4242

4343
template <>
44-
struct add<Loki::NullType>
44+
struct add<Loki::EmptyType>
4545
{
46-
typedef Loki::Typelist<Loki::Typelist<T, Loki::Typelist<P, Loki::NullType>>, List> result;
46+
typedef Loki::Typelist<Loki::Typelist<T, Loki::Typelist<P, Loki::EmptyType>>, List> result;
4747
};
4848

4949
typedef typename add<List>::result result;
5050
};
5151
};
5252

53-
#define cast_type_list Loki::NullType
53+
#define cast_type_list Loki::EmptyType
5454
#define add_to_cast_list(B, A) typedef SmartDynamicCast::CTypeHelper<cast_type_list, A, B>::result TypeList_##A##B
5555
#define save_cast_list(B, A) TypeList_##A##B
5656

src/xrServerEntities/smart_cast_impl1.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct exists
5959
};
6060

6161
template <>
62-
struct iterator<Loki::NullType>
62+
struct iterator<Loki::EmptyType>
6363
{
6464
enum
6565
{
@@ -83,7 +83,7 @@ struct merge
8383
};
8484

8585
template <>
86-
struct iterator<Loki::NullType>
86+
struct iterator<Loki::EmptyType>
8787
{
8888
typedef List2 result;
8989
};
@@ -116,9 +116,9 @@ struct has_conversion
116116
};
117117

118118
template <>
119-
struct search_base<Loki::NullType>
119+
struct search_base<Loki::EmptyType>
120120
{
121-
typedef Loki::NullType result;
121+
typedef Loki::EmptyType result;
122122
};
123123

124124
template <typename T>
@@ -149,7 +149,7 @@ struct has_conversion
149149
};
150150

151151
template <>
152-
struct search_conversion<Loki::NullType>
152+
struct search_conversion<Loki::EmptyType>
153153
{
154154
enum
155155
{
@@ -197,7 +197,7 @@ struct has_any_conversion
197197
};
198198

199199
template <>
200-
struct iterator<Loki::NullType>
200+
struct iterator<Loki::EmptyType>
201201
{
202202
enum
203203
{
@@ -233,14 +233,14 @@ struct CMatcher
233233
template <bool>
234234
struct _selector
235235
{
236-
typedef Loki::Typelist<typename PrevHead::Head, Loki::Typelist<Target, Loki::NullType>> result;
236+
typedef Loki::Typelist<typename PrevHead::Head, Loki::Typelist<Target, Loki::EmptyType>> result;
237237
};
238238

239239
template <>
240240
struct _selector<false>
241241
{
242242
typedef Loki::Typelist<typename PrevHead::Head,
243-
Loki::Typelist<Head, Loki::Typelist<Target, Loki::NullType>>>
243+
Loki::Typelist<Head, Loki::Typelist<Target, Loki::EmptyType>>>
244244
result;
245245
};
246246

@@ -258,7 +258,7 @@ struct CMatcher
258258
};
259259

260260
template <>
261-
struct CMatchHelper3<Loki::NullType>
261+
struct CMatchHelper3<Loki::EmptyType>
262262
{
263263
typedef typename CMatchHelper<typename T::Tail>::result result;
264264
};
@@ -290,9 +290,9 @@ struct CMatcher
290290
};
291291

292292
template <>
293-
struct CMatchHelper<Loki::NullType>
293+
struct CMatchHelper<Loki::EmptyType>
294294
{
295-
typedef Loki::NullType result;
295+
typedef Loki::EmptyType result;
296296
};
297297

298298
typedef typename CMatchHelper<cast_type_list>::result result;
@@ -326,7 +326,7 @@ struct conversion_sequence
326326
typedef search_result result;
327327
};
328328

329-
typedef typename selector<is_type<Loki::NullType, search_result>::value>::result result;
329+
typedef typename selector<is_type<Loki::EmptyType, search_result>::value>::result result;
330330
};
331331

332332
template <bool>
@@ -346,7 +346,7 @@ struct conversion_sequence
346346
typedef typename list_iterator<Tail>::result result;
347347
};
348348

349-
typedef typename _selector<!is_type<Loki::NullType, helper_result>::value>::result result;
349+
typedef typename _selector<!is_type<Loki::EmptyType, helper_result>::value>::result result;
350350
};
351351

352352
template <>
@@ -369,7 +369,7 @@ struct conversion_sequence
369369
typedef typename list_iterator<Tail>::result result;
370370
};
371371

372-
typedef typename _selector2<!is_type<Loki::NullType, helper_result>::value>::result result;
372+
typedef typename _selector2<!is_type<Loki::EmptyType, helper_result>::value>::result result;
373373
};
374374

375375
template <>
@@ -386,9 +386,9 @@ struct conversion_sequence
386386
};
387387

388388
template <>
389-
struct list_iterator<Loki::NullType>
389+
struct list_iterator<Loki::EmptyType>
390390
{
391-
typedef Loki::NullType result;
391+
typedef Loki::EmptyType result;
392392
};
393393

394394
template <int length>
@@ -410,7 +410,7 @@ struct conversion_sequence
410410
typedef typename list_iterator<cast_type_list>::result result;
411411
};
412412

413-
typedef typename _selector<!is_type<Loki::NullType, nearest>::value>::result result;
413+
typedef typename _selector<!is_type<Loki::EmptyType, nearest>::value>::result result;
414414
};
415415

416416
template <>
@@ -422,7 +422,7 @@ struct conversion_sequence
422422
template <>
423423
struct selector<0>
424424
{
425-
typedef Loki::NullType result;
425+
typedef Loki::EmptyType result;
426426
};
427427

428428
typedef typename selector<max_length>::result result;
@@ -451,7 +451,7 @@ struct CSmartCaster
451451
};
452452

453453
template <>
454-
struct CHelper<Loki::NullType>
454+
struct CHelper<Loki::EmptyType>
455455
{
456456
IC static Target* smart_cast(Head* p) { return (SmartDynamicCast::smart_cast<Target>(p)); }
457457
};
@@ -474,7 +474,7 @@ struct CSmartMatcher
474474
}
475475

476476
template <>
477-
IC static T1* smart_cast<Loki::NullType>(T2* p)
477+
IC static T1* smart_cast<Loki::EmptyType>(T2* p)
478478
{
479479
#ifdef SHOW_SMART_CAST_UNOPTIMIZED_CASES
480480
#pragma todo("Dima to all : this smart_cast is not optimized!")

0 commit comments

Comments
 (0)