mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
removed unnecessary explicit in some multi-arg constructors
This commit is contained in:
@@ -41,7 +41,7 @@ class BulkBinding: public AbstractBinding
|
|||||||
/// Bulk binding support is provided only for std::vector.
|
/// Bulk binding support is provided only for std::vector.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit BulkBinding(const T& val, Poco::UInt32 bulkSize, const std::string& name = "", Direction direction = PD_IN):
|
BulkBinding(const T& val, Poco::UInt32 bulkSize, const std::string& name = "", Direction direction = PD_IN):
|
||||||
AbstractBinding(name, direction, bulkSize),
|
AbstractBinding(name, direction, bulkSize),
|
||||||
_val(val),
|
_val(val),
|
||||||
_bound(false)
|
_bound(false)
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ public:
|
|||||||
typedef InternalBulkExtraction<ValType> Type;
|
typedef InternalBulkExtraction<ValType> Type;
|
||||||
typedef SharedPtr<Type> Ptr;
|
typedef SharedPtr<Type> Ptr;
|
||||||
|
|
||||||
explicit InternalBulkExtraction(C& result,
|
InternalBulkExtraction(C& result,
|
||||||
Column<C>* pColumn,
|
Column<C>* pColumn,
|
||||||
Poco::UInt32 limit,
|
Poco::UInt32 limit,
|
||||||
const Position& pos = Position(0)):
|
const Position& pos = Position(0)):
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ public:
|
|||||||
typedef SharedPtr<Type> Ptr;
|
typedef SharedPtr<Type> Ptr;
|
||||||
|
|
||||||
|
|
||||||
explicit InternalExtraction(C& result, Column<C>* pColumn, const Position& pos = Position(0)):
|
InternalExtraction(C& result, Column<C>* pColumn, const Position& pos = Position(0)):
|
||||||
Extraction<C>(result, ValType(), pos),
|
Extraction<C>(result, ValType(), pos),
|
||||||
_pColumn(pColumn)
|
_pColumn(pColumn)
|
||||||
/// Creates InternalExtraction.
|
/// Creates InternalExtraction.
|
||||||
|
|||||||
@@ -82,12 +82,12 @@ public:
|
|||||||
RowFormatter::Ptr pRowFormatter = 0);
|
RowFormatter::Ptr pRowFormatter = 0);
|
||||||
/// Creates the RecordSet.
|
/// Creates the RecordSet.
|
||||||
|
|
||||||
explicit RecordSet(Session& rSession,
|
RecordSet(Session& rSession,
|
||||||
const std::string& query,
|
const std::string& query,
|
||||||
RowFormatter::Ptr pRowFormatter = 0);
|
RowFormatter::Ptr pRowFormatter = 0);
|
||||||
/// Creates the RecordSet.
|
/// Creates the RecordSet.
|
||||||
|
|
||||||
explicit RecordSet(Session& rSession,
|
RecordSet(Session& rSession,
|
||||||
const std::string& query,
|
const std::string& query,
|
||||||
const RowFormatter& rowFormatter);
|
const RowFormatter& rowFormatter);
|
||||||
/// Creates the RecordSet.
|
/// Creates the RecordSet.
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit Buffer(T* pMem, std::size_t length):
|
Buffer(T* pMem, std::size_t length):
|
||||||
_capacity(length),
|
_capacity(length),
|
||||||
_used(length),
|
_used(length),
|
||||||
_ptr(pMem),
|
_ptr(pMem),
|
||||||
@@ -61,7 +61,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit Buffer(const T* pMem, std::size_t length):
|
Buffer(const T* pMem, std::size_t length):
|
||||||
_capacity(length),
|
_capacity(length),
|
||||||
_used(length),
|
_used(length),
|
||||||
_ptr(new T[length]),
|
_ptr(new T[length]),
|
||||||
@@ -86,7 +86,7 @@ public:
|
|||||||
std::memcpy(_ptr, other._ptr, _used * sizeof(T));
|
std::memcpy(_ptr, other._ptr, _used * sizeof(T));
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer& operator =(const Buffer& other)
|
Buffer& operator = (const Buffer& other)
|
||||||
/// Assignment operator.
|
/// Assignment operator.
|
||||||
{
|
{
|
||||||
if (this != &other)
|
if (this != &other)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit BasicFIFOBuffer(T* pBuffer, std::size_t size, bool notify = false):
|
BasicFIFOBuffer(T* pBuffer, std::size_t size, bool notify = false):
|
||||||
_buffer(pBuffer, size),
|
_buffer(pBuffer, size),
|
||||||
_begin(0),
|
_begin(0),
|
||||||
_used(0),
|
_used(0),
|
||||||
@@ -94,7 +94,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit BasicFIFOBuffer(const T* pBuffer, std::size_t size, bool notify = false):
|
BasicFIFOBuffer(const T* pBuffer, std::size_t size, bool notify = false):
|
||||||
_buffer(pBuffer, size),
|
_buffer(pBuffer, size),
|
||||||
_begin(0),
|
_begin(0),
|
||||||
_used(size),
|
_used(size),
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ public:
|
|||||||
explicit FIFOBufferStreamBuf(FIFOBuffer& fifoBuffer);
|
explicit FIFOBufferStreamBuf(FIFOBuffer& fifoBuffer);
|
||||||
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOBufferStreamBuf(char* pBuffer, std::size_t length);
|
FIFOBufferStreamBuf(char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOBufferStreamBuf(const char* pBuffer, std::size_t length);
|
FIFOBufferStreamBuf(const char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
/// Creates a FIFOBufferStreamBuf and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOBufferStreamBuf(std::size_t length);
|
explicit FIFOBufferStreamBuf(std::size_t length);
|
||||||
@@ -83,10 +83,10 @@ public:
|
|||||||
explicit FIFOIOS(FIFOBuffer& buffer);
|
explicit FIFOIOS(FIFOBuffer& buffer);
|
||||||
/// Creates a FIFOIOS and assigns the given buffer to it.
|
/// Creates a FIFOIOS and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOIOS(char* pBuffer, std::size_t length);
|
FIFOIOS(char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOIOS and assigns the given buffer to it.
|
/// Creates a FIFOIOS and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOIOS(const char* pBuffer, std::size_t length);
|
FIFOIOS(const char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOIOS and assigns the given buffer to it.
|
/// Creates a FIFOIOS and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOIOS(std::size_t length);
|
explicit FIFOIOS(std::size_t length);
|
||||||
@@ -118,10 +118,10 @@ public:
|
|||||||
explicit FIFOBufferStream(FIFOBuffer& buffer);
|
explicit FIFOBufferStream(FIFOBuffer& buffer);
|
||||||
/// Creates the FIFOBufferStream with supplied buffer as initial value.
|
/// Creates the FIFOBufferStream with supplied buffer as initial value.
|
||||||
|
|
||||||
explicit FIFOBufferStream(char* pBuffer, std::size_t length);
|
FIFOBufferStream(char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOBufferStream and assigns the given buffer to it.
|
/// Creates a FIFOBufferStream and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOBufferStream(const char* pBuffer, std::size_t length);
|
FIFOBufferStream(const char* pBuffer, std::size_t length);
|
||||||
/// Creates a FIFOBufferStream and assigns the given buffer to it.
|
/// Creates a FIFOBufferStream and assigns the given buffer to it.
|
||||||
|
|
||||||
explicit FIFOBufferStream(std::size_t length);
|
explicit FIFOBufferStream(std::size_t length);
|
||||||
|
|||||||
Reference in New Issue
Block a user