Skip to content

Commit 9d0e0e8

Browse files
committed
Comment out noexcept specifier in functions that are passed to luabind
1 parent 9169e3e commit 9d0e0e8

23 files changed

+95
-121
lines changed

src/xrGame/account_manager_script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using namespace luabind;
66
using namespace luabind::policy;
77
using namespace gamespy_gp;
88

9-
#ifndef LINUX // FIXME!!!
109
SCRIPT_EXPORT(account_manager, (), {
1110
module(luaState)[class_<account_manager>("account_manager")
1211
.def("suggest_unique_nicks", &account_manager::suggest_unique_nicks)
@@ -31,6 +30,7 @@ SCRIPT_EXPORT(account_manager, (), {
3130
.def("stop_searching_email", &account_manager::stop_searching_email)];
3231
});
3332

33+
#ifndef LINUX // FIXME!!!
3434
SCRIPT_EXPORT(suggest_nicks_cb, (), {
3535
module(luaState)[class_<gamespy_gp::suggest_nicks_cb>("suggest_nicks_cb")
3636
.def(constructor<>())

src/xrGame/alife_anomalous_zone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ void CSE_ALifeAnomalousZone::on_spawn()
131131
// spawn_artefacts ();
132132
}
133133

134-
bool CSE_ALifeAnomalousZone::keep_saved_data_anyway() const noexcept { return true; }
134+
bool CSE_ALifeAnomalousZone::keep_saved_data_anyway() const /* noexcept */ { return true; }

src/xrGame/alife_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ void CSE_ALifeObject::spawn_supplies(LPCSTR ini_string)
182182
}
183183
}
184184

185-
bool CSE_ALifeObject::keep_saved_data_anyway() const noexcept { return false; }
185+
bool CSE_ALifeObject::keep_saved_data_anyway() const /* noexcept */ { return false; }

src/xrServerEntities/xrServer_Object_Base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class CSE_Abstract : public IServerEntity, public CPureServerObject, public CScr
153153
virtual CSE_Abstract* base();
154154
virtual const CSE_Abstract* base() const;
155155
virtual CSE_Abstract* init();
156-
virtual bool match_configuration() const throw() { return true; }
156+
virtual bool match_configuration() const /* noexcept */ { return true; }
157157
// end of the virtual inheritance dependant code
158158
IC int script_clsid() const
159159
{

src/xrServerEntities/xrServer_Objects_ALife.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -547,21 +547,21 @@ u32 CSE_ALifeObject::ef_detector_type() const
547547
return (u32(-1));
548548
}
549549

550-
bool CSE_ALifeObject::used_ai_locations() const noexcept
550+
bool CSE_ALifeObject::used_ai_locations() const /* noexcept */
551551
{ return !!m_flags.is(flUsedAI_Locations); }
552-
bool CSE_ALifeObject::can_switch_online() const noexcept
552+
bool CSE_ALifeObject::can_switch_online() const /* noexcept */
553553
{ return match_configuration() && !!m_flags.is(flSwitchOnline); }
554-
bool CSE_ALifeObject::can_switch_offline() const noexcept
554+
bool CSE_ALifeObject::can_switch_offline() const /* noexcept */
555555
{ return !match_configuration() || !!m_flags.is(flSwitchOffline); }
556-
bool CSE_ALifeObject::can_save() const noexcept
556+
bool CSE_ALifeObject::can_save() const /* noexcept */
557557
{ return !!m_flags.is(flCanSave); }
558-
bool CSE_ALifeObject::interactive() const noexcept
558+
bool CSE_ALifeObject::interactive() const /* noexcept */
559559
{ return !!m_flags.is(flInteractive) && !!m_flags.is(flVisibleForAI) && !!m_flags.is(flUsefulForAI); }
560560

561561
void CSE_ALifeObject::use_ai_locations(bool value) { m_flags.set(flUsedAI_Locations, BOOL(value)); }
562-
void CSE_ALifeObject::can_switch_online(bool value) noexcept { m_flags.set(flSwitchOnline, BOOL(value)); }
563-
void CSE_ALifeObject::can_switch_offline(bool value) noexcept { m_flags.set(flSwitchOffline, BOOL(value)); }
564-
void CSE_ALifeObject::interactive(bool value) noexcept { m_flags.set(flInteractive, BOOL(value)); }
562+
void CSE_ALifeObject::can_switch_online(bool value) /* noexcept */ { m_flags.set(flSwitchOnline, BOOL(value)); }
563+
void CSE_ALifeObject::can_switch_offline(bool value) /* noexcept */ { m_flags.set(flSwitchOffline, BOOL(value)); }
564+
void CSE_ALifeObject::interactive(bool value) /* noexcept */ { m_flags.set(flInteractive, BOOL(value)); }
565565
////////////////////////////////////////////////////////////////////////////
566566
// CSE_ALifeGroupAbstract
567567
////////////////////////////////////////////////////////////////////////////
@@ -703,8 +703,8 @@ void CSE_ALifePHSkeletonObject::UPDATE_Read(NET_Packet& tNetPacket)
703703
inherited2::UPDATE_Read(tNetPacket);
704704
};
705705

706-
bool CSE_ALifePHSkeletonObject::can_save() const noexcept { return CSE_PHSkeleton::need_save(); }
707-
bool CSE_ALifePHSkeletonObject::used_ai_locations() const noexcept { return false; }
706+
bool CSE_ALifePHSkeletonObject::can_save() const /* noexcept */ { return CSE_PHSkeleton::need_save(); }
707+
bool CSE_ALifePHSkeletonObject::used_ai_locations() const /* noexcept */ { return false; }
708708
#ifndef XRGAME_EXPORTS
709709
void CSE_ALifePHSkeletonObject::FillProps(LPCSTR pref, PropItemVec& items)
710710
{
@@ -726,8 +726,8 @@ CSE_ALifeSpaceRestrictor::CSE_ALifeSpaceRestrictor(LPCSTR caSection) : CSE_ALife
726726
}
727727

728728
CSE_ALifeSpaceRestrictor::~CSE_ALifeSpaceRestrictor() {}
729-
bool CSE_ALifeSpaceRestrictor::can_switch_offline() const noexcept { return false; }
730-
bool CSE_ALifeSpaceRestrictor::used_ai_locations() const noexcept { return false; }
729+
bool CSE_ALifeSpaceRestrictor::can_switch_offline() const /* noexcept */ { return false; }
730+
bool CSE_ALifeSpaceRestrictor::used_ai_locations() const /* noexcept */ { return false; }
731731
IServerEntityShape* CSE_ALifeSpaceRestrictor::shape() { return (this); }
732732
void CSE_ALifeSpaceRestrictor::STATE_Read(NET_Packet& tNetPacket, u16 size)
733733
{
@@ -1148,8 +1148,8 @@ void CSE_ALifeObjectPhysic::FillProps(LPCSTR pref, PropItemVec& values)
11481148
}
11491149
#endif // #ifndef XRGAME_EXPORTS
11501150

1151-
bool CSE_ALifeObjectPhysic::used_ai_locations() const noexcept { return false; }
1152-
bool CSE_ALifeObjectPhysic::can_save() const noexcept { return CSE_PHSkeleton::need_save(); }
1151+
bool CSE_ALifeObjectPhysic::used_ai_locations() const /* noexcept */ { return false; }
1152+
bool CSE_ALifeObjectPhysic::can_save() const /* noexcept */ { return CSE_PHSkeleton::need_save(); }
11531153
////////////////////////////////////////////////////////////////////////////
11541154
// CSE_ALifeObjectHangingLamp
11551155
////////////////////////////////////////////////////////////////////////////
@@ -1418,7 +1418,7 @@ CDUInterface* du, IServerEntityLEOwner* owner, bool bSelected, const Fmatrix& pa
14181418
}
14191419
#endif // #ifndef XRGAME_EXPORTS
14201420

1421-
bool CSE_ALifeObjectHangingLamp::used_ai_locations() const noexcept { return false; }
1421+
bool CSE_ALifeObjectHangingLamp::used_ai_locations() const /* noexcept */ { return false; }
14221422
bool CSE_ALifeObjectHangingLamp::validate()
14231423
{
14241424
if (flags.test(flR1) || flags.test(flR2))
@@ -1428,7 +1428,7 @@ bool CSE_ALifeObjectHangingLamp::validate()
14281428
return (false);
14291429
}
14301430

1431-
bool CSE_ALifeObjectHangingLamp::match_configuration() const noexcept
1431+
bool CSE_ALifeObjectHangingLamp::match_configuration() const /* noexcept */
14321432
{
14331433
R_ASSERT3(flags.test(flR1) || flags.test(flR2), "no renderer type set for hanging-lamp ", name_replace());
14341434
#ifdef XRGAME_EXPORTS
@@ -1458,7 +1458,7 @@ void CSE_ALifeObjectProjector::UPDATE_Write(NET_Packet& tNetPacket) { inherited:
14581458
void CSE_ALifeObjectProjector::FillProps(LPCSTR pref, PropItemVec& values) { inherited::FillProps(pref, values); }
14591459
#endif // #ifndef XRGAME_EXPORTS
14601460

1461-
bool CSE_ALifeObjectProjector::used_ai_locations() const noexcept { return false; }
1461+
bool CSE_ALifeObjectProjector::used_ai_locations() const /* noexcept */ { return false; }
14621462
////////////////////////////////////////////////////////////////////////////
14631463
// CSE_ALifeSchedulable
14641464
////////////////////////////////////////////////////////////////////////////
@@ -1562,7 +1562,7 @@ void CSE_ALifeHelicopter::load(NET_Packet& tNetPacket)
15621562
inherited1::load(tNetPacket);
15631563
inherited3::load(tNetPacket);
15641564
}
1565-
bool CSE_ALifeHelicopter::can_save() const noexcept { return CSE_PHSkeleton::need_save(); }
1565+
bool CSE_ALifeHelicopter::can_save() const /* noexcept */ { return CSE_PHSkeleton::need_save(); }
15661566
#ifndef XRGAME_EXPORTS
15671567
void CSE_ALifeHelicopter::FillProps(LPCSTR pref, PropItemVec& values)
15681568
{
@@ -1574,7 +1574,7 @@ void CSE_ALifeHelicopter::FillProps(LPCSTR pref, PropItemVec& values)
15741574
}
15751575
#endif // #ifndef XRGAME_EXPORTS
15761576

1577-
bool CSE_ALifeHelicopter::used_ai_locations() const noexcept { return false; }
1577+
bool CSE_ALifeHelicopter::used_ai_locations() const /* noexcept */ { return false; }
15781578
////////////////////////////////////////////////////////////////////////////
15791579
// CSE_ALifeCar
15801580
////////////////////////////////////////////////////////////////////////////
@@ -1621,8 +1621,8 @@ void CSE_ALifeCar::UPDATE_Write(NET_Packet& tNetPacket)
16211621
inherited2::UPDATE_Write(tNetPacket);
16221622
}
16231623

1624-
bool CSE_ALifeCar::used_ai_locations() const noexcept { return false; }
1625-
bool CSE_ALifeCar::can_save() const noexcept { return CSE_PHSkeleton::need_save(); }
1624+
bool CSE_ALifeCar::used_ai_locations() const /* noexcept */ { return false; }
1625+
bool CSE_ALifeCar::can_save() const /* noexcept */ { return CSE_PHSkeleton::need_save(); }
16261626
void CSE_ALifeCar::load(NET_Packet& tNetPacket)
16271627
{
16281628
inherited1::load(tNetPacket);
@@ -1737,8 +1737,8 @@ void CSE_ALifeObjectBreakable::FillProps(LPCSTR pref, PropItemVec& values)
17371737
}
17381738
#endif // #ifndef XRGAME_EXPORTS
17391739

1740-
bool CSE_ALifeObjectBreakable::used_ai_locations() const noexcept { return false; }
1741-
bool CSE_ALifeObjectBreakable::can_switch_offline() const noexcept { return false; }
1740+
bool CSE_ALifeObjectBreakable::used_ai_locations() const /* noexcept */ { return false; }
1741+
bool CSE_ALifeObjectBreakable::can_switch_offline() const /* noexcept */ { return false; }
17421742
////////////////////////////////////////////////////////////////////////////
17431743
// CSE_ALifeObjectClimable
17441744
////////////////////////////////////////////////////////////////////////////
@@ -1799,8 +1799,8 @@ void CSE_ALifeObjectClimable::set_additional_info(void* info)
17991799
}
18001800
#endif // #ifndef XRGAME_EXPORTS
18011801

1802-
bool CSE_ALifeObjectClimable::used_ai_locations() const noexcept { return false; }
1803-
bool CSE_ALifeObjectClimable::can_switch_offline() const noexcept { return false; }
1802+
bool CSE_ALifeObjectClimable::used_ai_locations() const /* noexcept */ { return false; }
1803+
bool CSE_ALifeObjectClimable::can_switch_offline() const /* noexcept */ { return false; }
18041804
////////////////////////////////////////////////////////////////////////////
18051805
// CSE_ALifeMountedWeapon
18061806
////////////////////////////////////////////////////////////////////////////

src/xrServerEntities/xrServer_Objects_ALife.h

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class CSE_ALifeGraphPoint : public CSE_Abstract
9999

100100
CSE_ALifeGraphPoint(LPCSTR caSection);
101101
virtual ~CSE_ALifeGraphPoint();
102-
virtual bool match_configuration() const noexcept { return false; }
102+
virtual bool match_configuration() const /* noexcept */ { return false; }
103103
#ifndef XRGAME_EXPORTS
104104
virtual void __stdcall on_render(CDUInterface* du, IServerEntityLEOwner* owner, bool bSelected,
105105
const Fmatrix& parent, int priority, bool strictB2F);
@@ -151,17 +151,17 @@ class CSE_ALifeObject : public CSE_Abstract, public CRandom
151151

152152
CSE_ALifeObject(LPCSTR caSection);
153153
virtual ~CSE_ALifeObject();
154-
virtual bool used_ai_locations() const noexcept;
155-
virtual bool can_save() const noexcept;
156-
virtual bool can_switch_online() const noexcept;
157-
virtual bool can_switch_offline() const noexcept;
158-
virtual bool interactive() const noexcept;
154+
virtual bool used_ai_locations() const /* noexcept* */;
155+
virtual bool can_save() const /* noexcept */;
156+
virtual bool can_switch_online() const /* noexcept */;
157+
virtual bool can_switch_offline() const /* noexcept */;
158+
virtual bool interactive() const /* noexcept */;
159159
virtual CSE_ALifeObject* cast_alife_object() { return this; }
160160
bool move_offline() const;
161-
void can_switch_online(bool value) noexcept;
162-
void can_switch_offline(bool value) noexcept;
161+
void can_switch_online(bool value) /* noexcept */;
162+
void can_switch_offline(bool value) /* noexcept */;
163163
void use_ai_locations(bool value);
164-
void interactive(bool value) noexcept;
164+
void interactive(bool value) /* noexcept */;
165165
void move_offline(bool value);
166166
bool visible_for_map() const;
167167
void visible_for_map(bool value);
@@ -174,7 +174,7 @@ class CSE_ALifeObject : public CSE_Abstract, public CRandom
174174
virtual void spawn_supplies();
175175
CALifeSimulator& alife() const;
176176
virtual Fvector draw_level_position() const;
177-
virtual bool keep_saved_data_anyway() const noexcept;
177+
virtual bool keep_saved_data_anyway() const /* noexcept */;
178178
#endif
179179
virtual void UPDATE_Read(NET_Packet& P);
180180
virtual void UPDATE_Write(NET_Packet& P);
@@ -341,8 +341,8 @@ class CSE_ALifePHSkeletonObject : public CSE_ALifeDynamicObjectVisual, public CS
341341
public:
342342
CSE_ALifePHSkeletonObject(LPCSTR caSection);
343343
virtual ~CSE_ALifePHSkeletonObject();
344-
virtual bool can_save() const noexcept;
345-
virtual bool used_ai_locations() const noexcept;
344+
virtual bool can_save() const /* noexcept */;
345+
virtual bool used_ai_locations() const /* noexcept */;
346346
virtual void load(NET_Packet& tNetPacket);
347347
virtual CSE_Abstract* cast_abstract() { return this; }
348348
public:
@@ -364,8 +364,8 @@ class CSE_ALifeSpaceRestrictor : public CSE_ALifeDynamicObject, public CSE_Shape
364364
CSE_ALifeSpaceRestrictor(LPCSTR caSection);
365365
virtual ~CSE_ALifeSpaceRestrictor();
366366
virtual IServerEntityShape* __stdcall shape();
367-
virtual bool can_switch_offline() const noexcept;
368-
virtual bool used_ai_locations() const noexcept;
367+
virtual bool can_switch_offline() const /* noexcept */;
368+
virtual bool used_ai_locations() const /* noexcept */;
369369
virtual void UPDATE_Read(NET_Packet& P);
370370
virtual void UPDATE_Write(NET_Packet& P);
371371
virtual void STATE_Read(NET_Packet& P, u16 size);
@@ -411,7 +411,7 @@ class CSE_ALifeSmartZone : public CSE_ALifeSpaceRestrictor, public CSE_ALifeSche
411411
virtual void update();
412412
virtual float detect_probability();
413413
virtual void smart_touch(CSE_ALifeMonsterAbstract* monster);
414-
virtual bool used_ai_locations() const noexcept { return true; };
414+
virtual bool used_ai_locations() const /* noexcept */ { return true; };
415415
virtual CSE_ALifeSmartZone* cast_smart_zone() { return this; };
416416
#ifdef XRGAME_EXPORTS
417417
virtual bool bfActive();
@@ -444,8 +444,8 @@ class CSE_ALifeObjectPhysic : public CSE_ALifeDynamicObjectVisual, public CSE_PH
444444
shared_str fixed_bones;
445445
CSE_ALifeObjectPhysic(LPCSTR caSection);
446446
virtual ~CSE_ALifeObjectPhysic();
447-
virtual bool used_ai_locations() const noexcept;
448-
virtual bool can_save() const noexcept;
447+
virtual bool used_ai_locations() const /* noexcept */;
448+
virtual bool can_save() const /* noexcept */;
449449
virtual void load(NET_Packet& tNetPacket);
450450
virtual CSE_Abstract* cast_abstract() { return this; }
451451
// virtual void load (IReader& r){inherited::load(r);}
@@ -543,8 +543,8 @@ class CSE_ALifeObjectHangingLamp : public CSE_ALifeDynamicObjectVisual, public C
543543
CSE_ALifeObjectHangingLamp(LPCSTR caSection);
544544
virtual ~CSE_ALifeObjectHangingLamp();
545545
virtual void load(NET_Packet& tNetPacket);
546-
virtual bool used_ai_locations() const noexcept;
547-
virtual bool match_configuration() const noexcept;
546+
virtual bool used_ai_locations() const /* noexcept */;
547+
virtual bool match_configuration() const /* noexcept */;
548548
virtual bool __stdcall validate();
549549
#ifndef XRGAME_EXPORTS
550550
virtual void __stdcall on_render(CDUInterface* du, IServerEntityLEOwner* owner, bool bSelected,
@@ -565,7 +565,7 @@ class CSE_ALifeObjectProjector : public CSE_ALifeDynamicObjectVisual
565565
public:
566566
CSE_ALifeObjectProjector(LPCSTR caSection);
567567
virtual ~CSE_ALifeObjectProjector();
568-
virtual bool used_ai_locations() const noexcept;
568+
virtual bool used_ai_locations() const /* noexcept */;
569569
virtual void UPDATE_Read(NET_Packet& P);
570570
virtual void UPDATE_Write(NET_Packet& P);
571571
virtual void STATE_Read(NET_Packet& P, u16 size);
@@ -584,8 +584,8 @@ class CSE_ALifeHelicopter : public CSE_ALifeDynamicObjectVisual, public CSE_Moti
584584
CSE_ALifeHelicopter(LPCSTR caSection);
585585
virtual ~CSE_ALifeHelicopter();
586586
virtual void load(NET_Packet& tNetPacket);
587-
virtual bool can_save() const noexcept;
588-
virtual bool used_ai_locations() const noexcept;
587+
virtual bool can_save() const /* noexcept */;
588+
virtual bool used_ai_locations() const /* noexcept */;
589589
virtual CSE_Motion* __stdcall motion();
590590
virtual CSE_Abstract* cast_abstract() { return this; }
591591
virtual void UPDATE_Read(NET_Packet& P);
@@ -619,9 +619,9 @@ class CSE_ALifeCar : public CSE_ALifeDynamicObjectVisual, public CSE_PHSkeleton
619619
float health;
620620
CSE_ALifeCar(LPCSTR caSection);
621621
virtual ~CSE_ALifeCar();
622-
virtual bool used_ai_locations() const noexcept;
622+
virtual bool used_ai_locations() const /* noexcept */;
623623
virtual void load(NET_Packet& tNetPacket);
624-
virtual bool can_save() const noexcept;
624+
virtual bool can_save() const /* noexcept */;
625625
virtual CSE_Abstract* cast_abstract() { return this; }
626626
protected:
627627
virtual void data_load(NET_Packet& tNetPacket);
@@ -643,8 +643,8 @@ class CSE_ALifeObjectBreakable : public CSE_ALifeDynamicObjectVisual
643643
float m_health;
644644
CSE_ALifeObjectBreakable(LPCSTR caSection);
645645
virtual ~CSE_ALifeObjectBreakable();
646-
virtual bool used_ai_locations() const noexcept;
647-
virtual bool can_switch_offline() const noexcept;
646+
virtual bool used_ai_locations() const /* noexcept */;
647+
virtual bool can_switch_offline() const /* noexcept */;
648648
virtual void UPDATE_Read(NET_Packet& P);
649649
virtual void UPDATE_Write(NET_Packet& P);
650650
virtual void STATE_Read(NET_Packet& P, u16 size);
@@ -661,8 +661,8 @@ class CSE_ALifeObjectClimable : public CSE_Shape, public CSE_ALifeDynamicObject
661661
CSE_ALifeObjectClimable(LPCSTR caSection);
662662
shared_str material;
663663
virtual ~CSE_ALifeObjectClimable();
664-
virtual bool used_ai_locations() const noexcept;
665-
virtual bool can_switch_offline() const noexcept;
664+
virtual bool used_ai_locations() const /* noexcept */;
665+
virtual bool can_switch_offline() const /* noexcept */;
666666
virtual IServerEntityShape* __stdcall shape();
667667

668668
#ifndef XRGAME_EXPORTS

src/xrServerEntities/xrServer_Objects_ALife_Items.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ void CSE_ALifeItemAmmo::FillProps(LPCSTR pref, PropItemVec& values)
748748
}
749749
#endif // #ifndef XRGAME_EXPORTS
750750

751-
bool CSE_ALifeItemAmmo::can_switch_online() const noexcept { return inherited::can_switch_online(); }
752-
bool CSE_ALifeItemAmmo::can_switch_offline() const noexcept
751+
bool CSE_ALifeItemAmmo::can_switch_online() const /* noexcept */ { return inherited::can_switch_online(); }
752+
bool CSE_ALifeItemAmmo::can_switch_offline() const /* noexcept */
753753
{ return (inherited::can_switch_offline() && a_elapsed != 0); }
754754
////////////////////////////////////////////////////////////////////////////
755755
// CSE_ALifeItemDetector
@@ -948,11 +948,11 @@ void CSE_ALifeItemBolt::STATE_Write(NET_Packet& tNetPacket) { inherited::STATE_W
948948
void CSE_ALifeItemBolt::STATE_Read(NET_Packet& tNetPacket, u16 size) { inherited::STATE_Read(tNetPacket, size); }
949949
void CSE_ALifeItemBolt::UPDATE_Write(NET_Packet& tNetPacket) { inherited::UPDATE_Write(tNetPacket); };
950950
void CSE_ALifeItemBolt::UPDATE_Read(NET_Packet& tNetPacket) { inherited::UPDATE_Read(tNetPacket); };
951-
bool CSE_ALifeItemBolt::can_save() const noexcept
951+
bool CSE_ALifeItemBolt::can_save() const /* noexcept */
952952
{
953953
return false; //! attached());
954954
}
955-
bool CSE_ALifeItemBolt::used_ai_locations() const noexcept { return false; }
955+
bool CSE_ALifeItemBolt::used_ai_locations() const /* noexcept */ { return false; }
956956
#ifndef XRGAME_EXPORTS
957957
void CSE_ALifeItemBolt::FillProps(LPCSTR pref, PropItemVec& values) { inherited::FillProps(pref, values); }
958958
#endif // #ifndef XRGAME_EXPORTS

src/xrServerEntities/xrServer_Objects_ALife_Items.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class CSE_ALifeItemAmmo : public CSE_ALifeItem
152152
CSE_ALifeItemAmmo(LPCSTR caSection);
153153
virtual ~CSE_ALifeItemAmmo();
154154
virtual CSE_ALifeItemAmmo* cast_item_ammo() { return this; };
155-
virtual bool can_switch_online() const noexcept;
156-
virtual bool can_switch_offline() const noexcept;
155+
virtual bool can_switch_online() const /* noexcept */;
156+
virtual bool can_switch_offline() const /* noexcept */;
157157
virtual void UPDATE_Read(NET_Packet& P);
158158
virtual void UPDATE_Write(NET_Packet& P);
159159
virtual void STATE_Read(NET_Packet& P, u16 size);
@@ -404,8 +404,8 @@ class CSE_ALifeItemBolt : public CSE_ALifeItem
404404
u32 m_ef_weapon_type;
405405
CSE_ALifeItemBolt(LPCSTR caSection);
406406
virtual ~CSE_ALifeItemBolt();
407-
virtual bool can_save() const noexcept;
408-
virtual bool used_ai_locations() const noexcept;
407+
virtual bool can_save() const /* noexcept */;
408+
virtual bool used_ai_locations() const /* noexcept */;
409409
virtual u32 ef_weapon_type() const;
410410
virtual void UPDATE_Read(NET_Packet& P);
411411
virtual void UPDATE_Write(NET_Packet& P);

0 commit comments

Comments
 (0)