Skip to content

Commit

Permalink
AURORA: Mark Archive (and all archives) and KEYFile as noncopyable
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 23, 2016
1 parent db749f2 commit 8561c34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/aurora/archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <list>

#include <boost/noncopyable.hpp>

#include "src/common/types.h"
#include "src/common/ustring.h"
#include "src/common/hash.h"
Expand All @@ -40,7 +42,7 @@ namespace Common {
namespace Aurora {

/** An abstract file archive. */
class Archive {
class Archive : boost::noncopyable {
public:
/** A resource within the archive. */
struct Resource {
Expand Down
4 changes: 3 additions & 1 deletion src/aurora/keyfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <vector>

#include <boost/noncopyable.hpp>

#include "src/common/types.h"
#include "src/common/ustring.h"

Expand Down Expand Up @@ -61,7 +63,7 @@ namespace Aurora {
* games (Baldur's Gate et al) are not supported at all, even though
* they claim to be V1.
*/
class KEYFile : public AuroraFile {
class KEYFile : boost::noncopyable, public AuroraFile {
public:
/** A key resource index. */
struct Resource {
Expand Down

0 comments on commit 8561c34

Please sign in to comment.