mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-09 12:23:39 -04:00
Fix errors to support Xcode
This commit is contained in:
parent
12cee38782
commit
a4859ceae5
@ -214,7 +214,7 @@ class Arg
|
|||||||
* The char used as a place holder when SwitchArgs are combined.
|
* The char used as a place holder when SwitchArgs are combined.
|
||||||
* Currently set to the bell char (ASCII 7).
|
* Currently set to the bell char (ASCII 7).
|
||||||
*/
|
*/
|
||||||
static char blankChar() { return (char)7; }
|
static char blankChar() { return static_cast<char>(7); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The char that indicates the beginning of a flag. Defaults to '-', but
|
* The char that indicates the beginning of a flag. Defaults to '-', but
|
||||||
|
@ -53,10 +53,6 @@ class ArgException : public std::exception
|
|||||||
_typeDescription(td)
|
_typeDescription(td)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
/**
|
|
||||||
* Destructor.
|
|
||||||
*/
|
|
||||||
virtual ~ArgException() throw() { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the error text.
|
* Returns the error text.
|
||||||
@ -77,7 +73,7 @@ class ArgException : public std::exception
|
|||||||
/**
|
/**
|
||||||
* Returns the arg id and error text.
|
* Returns the arg id and error text.
|
||||||
*/
|
*/
|
||||||
const char* what() const throw()
|
const char* what() const noexcept
|
||||||
{
|
{
|
||||||
static std::string ex;
|
static std::string ex;
|
||||||
ex = _argId + " -- " + _errorText;
|
ex = _argId + " -- " + _errorText;
|
||||||
|
@ -37,7 +37,6 @@ namespace TCLAP {
|
|||||||
*/
|
*/
|
||||||
struct ValueLike {
|
struct ValueLike {
|
||||||
typedef ValueLike ValueCategory;
|
typedef ValueLike ValueCategory;
|
||||||
virtual ~ValueLike() {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -137,7 +137,7 @@ class CmdLine : public CmdLineInterface
|
|||||||
/**
|
/**
|
||||||
* Throws an exception listing the missing args.
|
* Throws an exception listing the missing args.
|
||||||
*/
|
*/
|
||||||
void missingArgsException();
|
[[ noreturn ]] void missingArgsException();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether a name/flag string matches entirely matches
|
* Checks whether a name/flag string matches entirely matches
|
||||||
@ -533,7 +533,7 @@ inline bool CmdLine::_emptyCombined(const std::string& s)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void CmdLine::missingArgsException()
|
[[ noreturn ]] inline void CmdLine::missingArgsException()
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user