/*
- * Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class AliasSupport {
public:
- AliasSupport(const Alias &alias);
+ explicit AliasSupport(const Alias &alias);
const ClientId &getOwner() const;
const Name &getName() const;
class ServiceConnection {
public:
- ServiceConnection(const char *service_interface);
+ explicit ServiceConnection(const char *service_interface);
// roundtrip: send and receive
int processRequest(const CKM::RawBuffer &send_buf,
/*
- * Copyright (c) 2015 - 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public:
typedef std::shared_ptr<BufferHandler> BufferHandlerPtr;
- BufferHandler(EncodingType type);
+ explicit BufferHandler(EncodingType type);
virtual ~BufferHandler();
virtual void Start(const XML::Parser::Attributes &);
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class Transaction {
public:
- Transaction(Crypto *db) : m_db(db), m_inTransaction(false)
+ explicit Transaction(Crypto *db) : m_db(db), m_inTransaction(false)
{
if (!m_db->m_inUserTransaction) {
try {
/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class EncryptionLogic {
public:
- EncryptionLogic(IEncryptionService &service) : m_service(service) {}
+ explicit EncryptionLogic(IEncryptionService &service) : m_service(service) {}
virtual ~EncryptionLogic() {}
void Crypt(const CryptoRequest &request);
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class FileSystem {
public:
- FileSystem(uid_t uid);
+ explicit FileSystem(uid_t uid);
std::string getDBPath() const;
/*
- * Copyright (c) 2014 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class KeyAndInfoContainer {
public:
KeyAndInfoContainer();
- KeyAndInfoContainer(const unsigned char *);
+ explicit KeyAndInfoContainer(const unsigned char *);
KeyAndInfo &getKeyAndInfo();
void setKeyInfoKeyLength(const unsigned int);
void setKeyInfo(const KeyComponentsInfo *);
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Contact: Kyungwook Tak <k.tak@samsung.com>
*
class DBFixture {
public:
DBFixture();
- DBFixture(const char *db_fname);
+ explicit DBFixture(const char *db_fname);
constexpr static const char *m_default_name = "name";
constexpr static const char *m_default_owner = "label";
/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace {
struct MessageA {
- MessageA(int ai) : i(ai) {}
+ explicit MessageA(int ai) : i(ai) {}
int i;
};
struct MessageB {
- MessageB(char ac) : c(ac) {}
+ explicit MessageB(char ac) : c(ac) {}
char c;
};
struct MessageC {
- MessageC(const std::string &astr) : str(astr) {}
+ explicit MessageC(const std::string &astr) : str(astr) {}
std::string str;
};
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Contact: Kyungwook Tak <k.tak@samsung.com>
*
const size_t LEN = 100;
struct Item {
- Item(size_t a) : mA(a) {}
+ explicit Item(size_t a) : mA(a) {}
~Item() {}
bool operator==(const size_t &other) const
/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
};
- StructureTest(const char *filename) : m_parser(filename), m_sum(0),
+ explicit StructureTest(const char *filename) : m_parser(filename), m_sum(0),
m_expectedSum(0)
{
m_parser.RegisterErrorCb(StructureTest::Error);
/*
- * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace CKM {
namespace DB {
struct CryptoExt : public Crypto {
- CryptoExt(Crypto orig) : Crypto(std::move(orig)) {}
+ explicit CryptoExt(Crypto orig) : Crypto(std::move(orig)) {}
SqlConnection::Output Execute(const std::string &cmd);
RowVector getRows();