style/whitespace

This commit is contained in:
Günter Obiltschnig 2021-06-26 06:30:49 +02:00
parent 9155121866
commit 70da508a79
9 changed files with 80 additions and 80 deletions

View File

@ -64,13 +64,13 @@ public:
void addValue(EnumValue* pValue); void addValue(EnumValue* pValue);
/// Adds an enum value. The Enum takes ownership of the value. /// Adds an enum value. The Enum takes ownership of the value.
Iterator begin() const; Iterator begin() const;
/// Returns an iterator for iterating over the Enum's EnumValue's. /// Returns an iterator for iterating over the Enum's EnumValue's.
Iterator end() const; Iterator end() const;
/// Returns an iterator for iterating over the Enum's EnumValue's. /// Returns an iterator for iterating over the Enum's EnumValue's.
const std::string& baseType() const; const std::string& baseType() const;
/// Returns the base type or an empty string if no base type has been specified. /// Returns the base type or an empty string if no base type has been specified.
@ -83,7 +83,7 @@ public:
protected: protected:
static std::string processName(const std::string& name); static std::string processName(const std::string& name);
private: private:
Values _values; Values _values;
std::string _baseType; std::string _baseType;
int _flags; int _flags;

View File

@ -50,18 +50,18 @@ public:
SYM_BUILTIN, /// A built-in type SYM_BUILTIN, /// A built-in type
SYM_VARIABLE /// A (member) variable SYM_VARIABLE /// A (member) variable
}; };
enum Access enum Access
{ {
ACC_PUBLIC, /// public access ACC_PUBLIC, /// public access
ACC_PROTECTED, /// protected access ACC_PROTECTED, /// protected access
ACC_PRIVATE /// private access ACC_PRIVATE /// private access
}; };
Symbol(); Symbol();
/// Creates the Symbol and assigns the symbol /// Creates the Symbol and assigns the symbol
/// a unique ID. /// a unique ID.
Symbol(const std::string& name, NameSpace* pNameSpace = 0); Symbol(const std::string& name, NameSpace* pNameSpace = 0);
/// Creates the Symbol and assigns the symbol /// Creates the Symbol and assigns the symbol
/// a unique ID. /// a unique ID.
@ -74,87 +74,87 @@ public:
const std::string& name() const; const std::string& name() const;
/// Returns the symbol's (local) name. /// Returns the symbol's (local) name.
NameSpace* nameSpace() const; NameSpace* nameSpace() const;
/// Returns the symbol's namespace which /// Returns the symbol's namespace which
/// may be null. /// may be null.
void setAccess(Access v); void setAccess(Access v);
/// Sets the symbol's access. /// Sets the symbol's access.
Access getAccess() const; Access getAccess() const;
/// Returns the symbol's access. /// Returns the symbol's access.
void setDocumentation(const std::string& text); void setDocumentation(const std::string& text);
/// Sets the symbol's documentation. /// Sets the symbol's documentation.
void addDocumentation(const std::string& text); void addDocumentation(const std::string& text);
/// Adds text to the symbol's documentation. /// Adds text to the symbol's documentation.
const std::string& getDocumentation() const; const std::string& getDocumentation() const;
/// Returns the symbol's documentation. /// Returns the symbol's documentation.
void setFile(const std::string& path); void setFile(const std::string& path);
/// Sets the file where the symbol is declared. /// Sets the file where the symbol is declared.
const std::string& getFile() const; const std::string& getFile() const;
/// Returns the file where the symbol is defined. /// Returns the file where the symbol is defined.
void setLineNumber(int line); void setLineNumber(int line);
/// Sets the line number of the symbol's declaration. /// Sets the line number of the symbol's declaration.
int getLineNumber() const; int getLineNumber() const;
/// Returns the line number of the symbol's declaration. /// Returns the line number of the symbol's declaration.
void setPackage(const std::string& package); void setPackage(const std::string& package);
/// Sets the symbol's package. /// Sets the symbol's package.
const std::string& getPackage() const; const std::string& getPackage() const;
/// Returns the symbol's package. /// Returns the symbol's package.
void setLibrary(const std::string& library); void setLibrary(const std::string& library);
/// Sets the symbol's library. /// Sets the symbol's library.
const std::string& getLibrary() const; const std::string& getLibrary() const;
/// Returns the symbol's library. /// Returns the symbol's library.
const Attributes& attrs() const; const Attributes& attrs() const;
/// Returns the symbol's attributes. /// Returns the symbol's attributes.
Attributes& attrs(); Attributes& attrs();
/// Returns the symbol's attributes. /// Returns the symbol's attributes.
const Attributes& getAttributes() const; const Attributes& getAttributes() const;
/// Returns the symbol's attributes. /// Returns the symbol's attributes.
void setAttributes(const Attributes& attrs); void setAttributes(const Attributes& attrs);
/// Sets the symbol's attributes. /// Sets the symbol's attributes.
std::string fullName() const; std::string fullName() const;
/// Returns the symbol's fully qualified name. /// Returns the symbol's fully qualified name.
static std::string extractName(const std::string& decl); static std::string extractName(const std::string& decl);
/// Extracts the name from the declaration. /// Extracts the name from the declaration.
virtual Kind kind() const = 0; virtual Kind kind() const = 0;
/// Returns the symbol's kind. /// Returns the symbol's kind.
virtual std::string toString() const = 0; virtual std::string toString() const = 0;
/// Returns a string representation of the symbol. /// Returns a string representation of the symbol.
bool isPublic() const; bool isPublic() const;
/// Returns true iff the symbol is public. /// Returns true iff the symbol is public.
bool isProtected() const; bool isProtected() const;
/// Returns true iff the symbol is public. /// Returns true iff the symbol is public.
bool isPrivate() const; bool isPrivate() const;
/// Returns true iff the symbol is public. /// Returns true iff the symbol is public.
protected: protected:
static bool isIdent(char c); static bool isIdent(char c);
static bool hasAttr(const std::string& decl, const std::string& attr); static bool hasAttr(const std::string& decl, const std::string& attr);
private: private:
Symbol(const Symbol&); Symbol(const Symbol&);
Symbol& operator = (const Symbol&); Symbol& operator = (const Symbol&);
@ -169,7 +169,7 @@ private:
std::string _package; std::string _package;
std::string _library; std::string _library;
Attributes _attrs; Attributes _attrs;
static int _nextId; static int _nextId;
}; };

View File

@ -37,7 +37,7 @@ public:
/// Destroys the TypeDef. /// Destroys the TypeDef.
Symbol::Kind kind() const; Symbol::Kind kind() const;
std::string baseType() const; std::string baseType() const;
/// Returns the underlying base type. /// Returns the underlying base type.
}; };

View File

@ -51,11 +51,11 @@ Enum::~Enum()
void Enum::addValue(EnumValue* pValue) void Enum::addValue(EnumValue* pValue)
{ {
poco_check_ptr (pValue); poco_check_ptr (pValue);
_values.push_back(pValue); _values.push_back(pValue);
} }
Enum::Iterator Enum::begin() const Enum::Iterator Enum::begin() const
{ {
return _values.begin(); return _values.begin();

View File

@ -58,7 +58,7 @@ Parser::Parser(NameSpace::SymbolTable& gst, const std::string& file, std::istrea
p.makeAbsolute(); p.makeAbsolute();
_path = p.toString(); _path = p.toString();
_currentPath = _path; _currentPath = _path;
_nsStack.push_back(NameSpace::root()); _nsStack.push_back(NameSpace::root());
} }
@ -205,7 +205,7 @@ const Token* Parser::parseFile(const Token* pNext)
const Token* Parser::parseNameSpace(const Token* pNext) const Token* Parser::parseNameSpace(const Token* pNext)
{ {
poco_assert (isKeyword(pNext, IdentifierToken::KW_NAMESPACE)); poco_assert (isKeyword(pNext, IdentifierToken::KW_NAMESPACE));
pNext = next(); pNext = next();
if (pNext->is(Token::IDENTIFIER_TOKEN)) if (pNext->is(Token::IDENTIFIER_TOKEN))
{ {
@ -213,11 +213,11 @@ const Token* Parser::parseNameSpace(const Token* pNext)
std::string name = pNext->tokenString(); std::string name = pNext->tokenString();
pNext = next(); pNext = next();
expectOperator(pNext, OperatorToken::OP_OPENBRACE, "{"); expectOperator(pNext, OperatorToken::OP_OPENBRACE, "{");
std::string fullName = currentNameSpace()->fullName(); std::string fullName = currentNameSpace()->fullName();
if (!fullName.empty()) fullName += "::"; if (!fullName.empty()) fullName += "::";
fullName += name; fullName += name;
NameSpace* pNS = dynamic_cast<NameSpace*>(currentNameSpace()->lookup(fullName)); NameSpace* pNS = dynamic_cast<NameSpace*>(currentNameSpace()->lookup(fullName));
bool undefined = (pNS == 0); bool undefined = (pNS == 0);
if (undefined) pNS = new NameSpace(name, currentNameSpace()); if (undefined) pNS = new NameSpace(name, currentNameSpace());
@ -377,7 +377,7 @@ const Token* Parser::parseBaseClassList(const Token* pNext, Struct* pClass)
const Token* Parser::parseClassMembers(const Token* pNext, Struct* /*pClass*/) const Token* Parser::parseClassMembers(const Token* pNext, Struct* /*pClass*/)
{ {
poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE)); poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE));
pNext = next(); pNext = next();
while (pNext->is(Token::IDENTIFIER_TOKEN) || pNext->is(Token::KEYWORD_TOKEN) || isOperator(pNext, OperatorToken::OP_COMPL)) while (pNext->is(Token::IDENTIFIER_TOKEN) || pNext->is(Token::KEYWORD_TOKEN) || isOperator(pNext, OperatorToken::OP_COMPL))
{ {
@ -456,7 +456,7 @@ const Token* Parser::parseTemplate(const Token* pNext)
const Token* Parser::parseTemplateArgs(const Token* pNext, std::string& decl) const Token* Parser::parseTemplateArgs(const Token* pNext, std::string& decl)
{ {
poco_assert (isOperator(pNext, OperatorToken::OP_LT)); poco_assert (isOperator(pNext, OperatorToken::OP_LT));
append(decl, pNext); append(decl, pNext);
int depth = 1; int depth = 1;
pNext = next(); pNext = next();
@ -499,7 +499,7 @@ const Token* Parser::parseTypeDef(const Token* pNext)
const Token* Parser::parseUsing(const Token* pNext) const Token* Parser::parseUsing(const Token* pNext)
{ {
poco_assert (isKeyword(pNext, IdentifierToken::KW_USING)); poco_assert (isKeyword(pNext, IdentifierToken::KW_USING));
_pCurrentSymbol = 0; _pCurrentSymbol = 0;
int line = _istr.getCurrentLineNumber(); int line = _istr.getCurrentLineNumber();
pNext = next(); pNext = next();
@ -538,7 +538,7 @@ const Token* Parser::parseUsing(const Token* pNext)
{ {
currentNameSpace()->importSymbol(id); currentNameSpace()->importSymbol(id);
} }
} }
} }
if (!isOperator(pNext, OperatorToken::OP_SEMICOLON)) if (!isOperator(pNext, OperatorToken::OP_SEMICOLON))
@ -552,7 +552,7 @@ const Token* Parser::parseUsing(const Token* pNext)
const Token* Parser::parseFriend(const Token* pNext) const Token* Parser::parseFriend(const Token* pNext)
{ {
poco_assert (isKeyword(pNext, IdentifierToken::KW_FRIEND)); poco_assert (isKeyword(pNext, IdentifierToken::KW_FRIEND));
pNext = next(); pNext = next();
while (!isOperator(pNext, OperatorToken::OP_SEMICOLON) && !isEOF(pNext)) while (!isOperator(pNext, OperatorToken::OP_SEMICOLON) && !isEOF(pNext))
@ -621,7 +621,7 @@ const Token* Parser::parseVarFunc(const Token* pNext, std::string& decl)
const Token* Parser::parseExtern(const Token* pNext) const Token* Parser::parseExtern(const Token* pNext)
{ {
poco_assert (isKeyword(pNext, IdentifierToken::KW_EXTERN)); poco_assert (isKeyword(pNext, IdentifierToken::KW_EXTERN));
pNext = next(); pNext = next();
if (pNext->is(Token::STRING_LITERAL_TOKEN)) if (pNext->is(Token::STRING_LITERAL_TOKEN))
pNext = next(); pNext = next();
@ -656,7 +656,7 @@ const Token* Parser::parseFunc(const Token* pNext, std::string& decl)
expectOperator(pNext, OperatorToken::OP_CLOSPARENT, ")"); expectOperator(pNext, OperatorToken::OP_CLOSPARENT, ")");
pNext = next(); pNext = next();
while (pNext->is(Poco::Token::IDENTIFIER_TOKEN) || pNext->is(Poco::Token::KEYWORD_TOKEN)) while (pNext->is(Poco::Token::IDENTIFIER_TOKEN) || pNext->is(Poco::Token::KEYWORD_TOKEN))
{ {
if (isKeyword(pNext, IdentifierToken::KW_CONST)) if (isKeyword(pNext, IdentifierToken::KW_CONST))
{ {
if (pFunc) pFunc->makeConst(); if (pFunc) pFunc->makeConst();
@ -664,7 +664,7 @@ const Token* Parser::parseFunc(const Token* pNext, std::string& decl)
} }
if (isKeyword(pNext, IdentifierToken::KW_THROW)) if (isKeyword(pNext, IdentifierToken::KW_THROW))
{ {
while (!isOperator(pNext, OperatorToken::OP_ASSIGN) && !isOperator(pNext, OperatorToken::OP_SEMICOLON) && while (!isOperator(pNext, OperatorToken::OP_ASSIGN) && !isOperator(pNext, OperatorToken::OP_SEMICOLON) &&
!isOperator(pNext, OperatorToken::OP_OPENBRACE) && !isEOF(pNext)) !isOperator(pNext, OperatorToken::OP_OPENBRACE) && !isEOF(pNext))
pNext = next(); pNext = next();
} }
@ -721,16 +721,16 @@ const Token* Parser::parseFunc(const Token* pNext, std::string& decl)
pNext = next(); pNext = next();
pNext = parseBlock(pNext); pNext = parseBlock(pNext);
if (isKeyword(pNext, IdentifierToken::KW_CATCH)) if (isKeyword(pNext, IdentifierToken::KW_CATCH))
{ {
while (!isOperator(pNext, OperatorToken::OP_OPENBRACE) && !isEOF(pNext)) while (!isOperator(pNext, OperatorToken::OP_OPENBRACE) && !isEOF(pNext))
pNext = next(); pNext = next();
pNext = parseBlock(pNext); pNext = parseBlock(pNext);
} }
else syntaxError("expected catch block"); else syntaxError("expected catch block");
if (!pFunc) if (!pFunc)
pFunc = dynamic_cast<Function*>(currentNameSpace()->lookup(name)); pFunc = dynamic_cast<Function*>(currentNameSpace()->lookup(name));
if (pFunc) if (pFunc)
@ -785,7 +785,7 @@ const Token* Parser::parseParameters(const Token* pNext, Function* pFunc)
const Token* Parser::parseBlock(const Token* pNext) const Token* Parser::parseBlock(const Token* pNext)
{ {
poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE)); poco_assert (isOperator(pNext, OperatorToken::OP_OPENBRACE));
pNext = next(); pNext = next();
int depth = 1; int depth = 1;
while (depth > 0 && !isEOF(pNext)) while (depth > 0 && !isEOF(pNext))

View File

@ -19,7 +19,7 @@
#include "Poco/KeyValueArgs.h" #include "Poco/KeyValueArgs.h"
#include "Poco/ValidArgs.h" #include "Poco/ValidArgs.h"
#include "Poco/Mutex.h" #include "Poco/Mutex.h"
#include "Poco/Exception.h" #include "Poco/Exception.h"
#include "Poco/FIFOEvent.h" #include "Poco/FIFOEvent.h"
@ -34,9 +34,9 @@
namespace Poco { namespace Poco {
template <class TKey, class TValue, class TStrategy, class TMutex = FastMutex, class TEventMutex = FastMutex> template <class TKey, class TValue, class TStrategy, class TMutex = FastMutex, class TEventMutex = FastMutex>
class AbstractCache class AbstractCache
/// An AbstractCache is the interface of all caches. /// An AbstractCache is the interface of all caches.
{ {
public: public:
FIFOEvent<const KeyValueArgs<TKey, TValue>, TEventMutex> Add; FIFOEvent<const KeyValueArgs<TKey, TValue>, TEventMutex> Add;
@ -83,7 +83,7 @@ public:
void update(const TKey& key, const TValue& val) void update(const TKey& key, const TValue& val)
/// Adds the key value pair to the cache. Note that adding a NULL SharedPtr will fail! /// Adds the key value pair to the cache. Note that adding a NULL SharedPtr will fail!
/// If for the key already an entry exists, it will be overwritten. /// If for the key already an entry exists, it will be overwritten.
/// The difference to add is that no remove or add events are thrown in this case, /// The difference to add is that no remove or add events are thrown in this case,
/// just a simply silent update is performed /// just a simply silent update is performed
/// If the key does not exist the behavior is equal to add, ie. an add event is thrown /// If the key does not exist the behavior is equal to add, ie. an add event is thrown
{ {
@ -103,7 +103,7 @@ public:
void update(const TKey& key, SharedPtr<TValue > val) void update(const TKey& key, SharedPtr<TValue > val)
/// Adds the key value pair to the cache. Note that adding a NULL SharedPtr will fail! /// Adds the key value pair to the cache. Note that adding a NULL SharedPtr will fail!
/// If for the key already an entry exists, it will be overwritten. /// If for the key already an entry exists, it will be overwritten.
/// The difference to add is that no remove or add events are thrown in this case, /// The difference to add is that no remove or add events are thrown in this case,
/// just an Update is thrown /// just an Update is thrown
/// If the key does not exist the behavior is equal to add, ie. an add event is thrown /// If the key does not exist the behavior is equal to add, ie. an add event is thrown
{ {
@ -231,7 +231,7 @@ protected:
KeyValueArgs<TKey, TValue> args(key, val); KeyValueArgs<TKey, TValue> args(key, val);
Add.notify(this, args); Add.notify(this, args);
_data.insert(std::make_pair(key, SharedPtr<TValue>(new TValue(val)))); _data.insert(std::make_pair(key, SharedPtr<TValue>(new TValue(val))));
doReplace(); doReplace();
} }
@ -245,7 +245,7 @@ protected:
KeyValueArgs<TKey, TValue> args(key, *val); KeyValueArgs<TKey, TValue> args(key, *val);
Add.notify(this, args); Add.notify(this, args);
_data.insert(std::make_pair(key, val)); _data.insert(std::make_pair(key, val));
doReplace(); doReplace();
} }
@ -265,7 +265,7 @@ protected:
Update.notify(this, args); Update.notify(this, args);
it->second = SharedPtr<TValue>(new TValue(val)); it->second = SharedPtr<TValue>(new TValue(val));
} }
doReplace(); doReplace();
} }
@ -285,11 +285,11 @@ protected:
Update.notify(this, args); Update.notify(this, args);
it->second = val; it->second = val;
} }
doReplace(); doReplace();
} }
void doRemove(Iterator it) void doRemove(Iterator it)
/// Removes an entry from the cache. If the entry is not found /// Removes an entry from the cache. If the entry is not found
/// the remove is ignored. /// the remove is ignored.
{ {
@ -317,7 +317,7 @@ protected:
return result; return result;
} }
SharedPtr<TValue> doGet(const TKey& key) SharedPtr<TValue> doGet(const TKey& key)
/// Returns a SharedPtr of the cache entry, returns 0 if for /// Returns a SharedPtr of the cache entry, returns 0 if for
/// the key no value was found /// the key no value was found
{ {
@ -325,7 +325,7 @@ protected:
SharedPtr<TValue> result; SharedPtr<TValue> result;
if (it != _data.end()) if (it != _data.end())
{ {
// inform all strategies that a read-access to an element happens // inform all strategies that a read-access to an element happens
Get.notify(this, key); Get.notify(this, key);
// ask all strategies if the key is valid // ask all strategies if the key is valid

View File

@ -116,7 +116,7 @@ public:
~VarHolderImpl() ~VarHolderImpl()
{ {
} }
const std::type_info& type() const const std::type_info& type() const
{ {
return typeid(Pair<std::string>); return typeid(Pair<std::string>);
@ -131,7 +131,7 @@ public:
{ {
throw BadCastException("Cannot cast Pair type to Int16"); throw BadCastException("Cannot cast Pair type to Int16");
} }
void convert(Int32& val) const void convert(Int32& val) const
{ {
throw BadCastException("Cannot cast Pair type to Int32"); throw BadCastException("Cannot cast Pair type to Int32");
@ -151,7 +151,7 @@ public:
{ {
throw BadCastException("Cannot cast Pair type to UInt16"); throw BadCastException("Cannot cast Pair type to UInt16");
} }
void convert(UInt32& val) const void convert(UInt32& val) const
{ {
throw BadCastException("Cannot cast Pair type to UInt32"); throw BadCastException("Cannot cast Pair type to UInt32");
@ -191,7 +191,7 @@ public:
Impl::appendJSONKey(val, key); Impl::appendJSONKey(val, key);
val.append(": "); val.append(": ");
Impl::appendJSONValue(val, _val.second()); Impl::appendJSONValue(val, _val.second());
val.append(" }"); val.append(" }");
} }
void convert(Poco::DateTime&) const void convert(Poco::DateTime&) const
@ -213,7 +213,7 @@ public:
{ {
return cloneHolder(pVarHolder, _val); return cloneHolder(pVarHolder, _val);
} }
const Pair<std::string>& value() const const Pair<std::string>& value() const
{ {
return _val; return _val;
@ -265,7 +265,7 @@ public:
~VarHolderImpl() ~VarHolderImpl()
{ {
} }
const std::type_info& type() const const std::type_info& type() const
{ {
return typeid(Pair<int>); return typeid(Pair<int>);
@ -280,7 +280,7 @@ public:
{ {
throw BadCastException("Cannot cast Pair type to Int16"); throw BadCastException("Cannot cast Pair type to Int16");
} }
void convert(Int32& val) const void convert(Int32& val) const
{ {
throw BadCastException("Cannot cast Pair type to Int32"); throw BadCastException("Cannot cast Pair type to Int32");
@ -300,7 +300,7 @@ public:
{ {
throw BadCastException("Cannot cast Pair type to UInt16"); throw BadCastException("Cannot cast Pair type to UInt16");
} }
void convert(UInt32& val) const void convert(UInt32& val) const
{ {
throw BadCastException("Cannot cast Pair type to UInt32"); throw BadCastException("Cannot cast Pair type to UInt32");
@ -340,7 +340,7 @@ public:
Impl::appendJSONKey(val, key); Impl::appendJSONKey(val, key);
val.append(": "); val.append(": ");
Impl::appendJSONValue(val, _val.second()); Impl::appendJSONValue(val, _val.second());
val.append(" }"); val.append(" }");
} }
void convert(Poco::DateTime&) const void convert(Poco::DateTime&) const
@ -362,7 +362,7 @@ public:
{ {
return cloneHolder(pVarHolder, _val); return cloneHolder(pVarHolder, _val);
} }
const Pair<int>& value() const const Pair<int>& value() const
{ {
return _val; return _val;

View File

@ -172,7 +172,7 @@ public:
{ {
_data.clear(); _data.clear();
} }
inline void swap(Struct& other) inline void swap(Struct& other)
/// Swap content of Struct with another Struct /// Swap content of Struct with another Struct
{ {
@ -264,7 +264,7 @@ public:
~VarHolderImpl() ~VarHolderImpl()
{ {
} }
const std::type_info& type() const const std::type_info& type() const
{ {
return typeid(ValueType); return typeid(ValueType);
@ -279,7 +279,7 @@ public:
{ {
throw BadCastException("Cannot cast Struct type to Int16"); throw BadCastException("Cannot cast Struct type to Int16");
} }
void convert(Int32&) const void convert(Int32&) const
{ {
throw BadCastException("Cannot cast Struct type to Int32"); throw BadCastException("Cannot cast Struct type to Int32");
@ -299,7 +299,7 @@ public:
{ {
throw BadCastException("Cannot cast Struct type to UInt16"); throw BadCastException("Cannot cast Struct type to UInt16");
} }
void convert(UInt32&) const void convert(UInt32&) const
{ {
throw BadCastException("Cannot cast Struct type to UInt32"); throw BadCastException("Cannot cast Struct type to UInt32");
@ -373,7 +373,7 @@ public:
{ {
return cloneHolder(pVarHolder, _val); return cloneHolder(pVarHolder, _val);
} }
const ValueType& value() const const ValueType& value() const
{ {
return _val; return _val;
@ -413,7 +413,7 @@ public:
{ {
return false; return false;
} }
std::size_t size() const std::size_t size() const
{ {
return _val.size(); return _val.size();

View File

@ -504,7 +504,7 @@ inline Poco::Timespan Application::uptime() const
// //
// Macro to implement main() // Macro to implement main()
// //
#if defined(_WIN32) #if defined(_WIN32)
#define POCO_APP_MAIN(App) \ #define POCO_APP_MAIN(App) \
int wmain(int argc, wchar_t** argv) \ int wmain(int argc, wchar_t** argv) \
{ \ { \