Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 80a634a

Browse files
committed
Don't generate copy-constructor and copy-assignment where relevant
1 parent 04d32fb commit 80a634a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+128
-128
lines changed

Entities/ACDropShip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ ClassInfoGetters
465465

466466

467467
// Disallow the use of some implicit methods.
468-
ACDropShip(const ACDropShip &reference) {}
469-
ACDropShip & operator=(const ACDropShip &rhs) {}
468+
ACDropShip(const ACDropShip &reference) = delete;
469+
ACDropShip & operator=(const ACDropShip &rhs) = delete;
470470

471471
};
472472

Entities/ACRocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ ClassInfoGetters
394394
void Clear();
395395

396396
// Disallow the use of some implicit methods.
397-
ACRocket(const ACRocket &reference) {}
398-
ACRocket & operator=(const ACRocket &rhs) {}
397+
ACRocket(const ACRocket &reference) = delete;
398+
ACRocket & operator=(const ACRocket &rhs) = delete;
399399

400400
};
401401

Entities/ACrab.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ int FirearmActivationDelay() const;
728728
void Clear();
729729

730730
// Disallow the use of some implicit methods.
731-
ACrab(const ACrab &reference) {}
732-
ACrab & operator=(const ACrab &rhs) {}
731+
ACrab(const ACrab &reference) = delete;
732+
ACrab & operator=(const ACrab &rhs) = delete;
733733

734734
};
735735

Entities/ACraft.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,8 @@ enum
726726

727727

728728
// Disallow the use of some implicit methods.
729-
ACraft(const ACraft &reference) {}
730-
ACraft & operator=(const ACraft &rhs) {}
729+
ACraft(const ACraft &reference) = delete;
730+
ACraft & operator=(const ACraft &rhs) = delete;
731731

732732
};
733733

Entities/ADoor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ namespace RTE {
273273
void Clear();
274274

275275
// Disallow the use of some implicit methods.
276-
ADoor(const ADoor &reference) {}
277-
ADoor & operator=(const ADoor &rhs) {}
276+
ADoor(const ADoor &reference) = delete;
277+
ADoor & operator=(const ADoor &rhs) = delete;
278278
};
279279
}
280280
#endif

Entities/AEmitter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ ClassInfoGetters
660660

661661

662662
// Disallow the use of some implicit methods.
663-
AEmitter(const AEmitter &reference) {}
664-
AEmitter & operator=(const AEmitter &rhs) {}
663+
AEmitter(const AEmitter &reference) = delete;
664+
AEmitter & operator=(const AEmitter &rhs) = delete;
665665

666666
};
667667

Entities/AHuman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,8 @@ ClassInfoGetters
11101110
void Clear();
11111111

11121112
// Disallow the use of some implicit methods.
1113-
AHuman(const AHuman &reference) {}
1114-
AHuman & operator=(const AHuman &rhs) {}
1113+
AHuman(const AHuman &reference) = delete;
1114+
AHuman & operator=(const AHuman &rhs) = delete;
11151115

11161116
};
11171117

Entities/Activity.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ namespace RTE {
728728
void Clear();
729729

730730
// Disallow the use of some implicit methods.
731-
Activity(const Activity &reference) {}
732-
Activity & operator=(const Activity &rhs) {}
731+
Activity(const Activity &reference) = delete;
732+
Activity & operator=(const Activity &rhs) = delete;
733733
};
734734
}
735735
#endif

Entities/Actor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,8 +1512,8 @@ ClassInfoGetters
15121512
void Clear();
15131513

15141514
// Disallow the use of some implicit methods.
1515-
Actor(const Actor &reference) {}
1516-
Actor & operator=(const Actor &rhs) {}
1515+
Actor(const Actor &reference) = delete;
1516+
Actor & operator=(const Actor &rhs) = delete;
15171517

15181518
};
15191519

Entities/Arm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ ClassInfoGetters
496496

497497

498498
// Disallow the use of some implicit methods.
499-
Arm(const Arm &reference) {}
500-
Arm & operator=(const Arm &rhs) {}
499+
Arm(const Arm &reference) = delete;
500+
Arm & operator=(const Arm &rhs) = delete;
501501

502502
};
503503

0 commit comments

Comments
 (0)