Replace tabs with four spaces to comply with coding standard in doc/coding.txt
This commit is contained in:
parent
9e8818ec9d
commit
b985efaac1
@ -380,32 +380,32 @@ namespace json_spirit
|
|||||||
|
|
||||||
static void throw_not_value( Iter_type begin, Iter_type end )
|
static void throw_not_value( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "not a value" );
|
throw_error( begin, "not a value" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void throw_not_array( Iter_type begin, Iter_type end )
|
static void throw_not_array( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "not an array" );
|
throw_error( begin, "not an array" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void throw_not_object( Iter_type begin, Iter_type end )
|
static void throw_not_object( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "not an object" );
|
throw_error( begin, "not an object" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void throw_not_pair( Iter_type begin, Iter_type end )
|
static void throw_not_pair( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "not a pair" );
|
throw_error( begin, "not a pair" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void throw_not_colon( Iter_type begin, Iter_type end )
|
static void throw_not_colon( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "no colon in pair" );
|
throw_error( begin, "no colon in pair" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void throw_not_string( Iter_type begin, Iter_type end )
|
static void throw_not_string( Iter_type begin, Iter_type end )
|
||||||
{
|
{
|
||||||
throw_error( begin, "not a string" );
|
throw_error( begin, "not a string" );
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename ScannerT >
|
template< typename ScannerT >
|
||||||
|
@ -963,11 +963,11 @@ void ThreadMapPort2(void* parg)
|
|||||||
#ifndef UPNPDISCOVER_SUCCESS
|
#ifndef UPNPDISCOVER_SUCCESS
|
||||||
/* miniupnpc 1.5 */
|
/* miniupnpc 1.5 */
|
||||||
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
|
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
|
||||||
port, port, lanaddr, strDesc.c_str(), "TCP", 0);
|
port, port, lanaddr, strDesc.c_str(), "TCP", 0);
|
||||||
#else
|
#else
|
||||||
/* miniupnpc 1.6 */
|
/* miniupnpc 1.6 */
|
||||||
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
|
r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
|
||||||
port, port, lanaddr, strDesc.c_str(), "TCP", 0, "0");
|
port, port, lanaddr, strDesc.c_str(), "TCP", 0, "0");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(r!=UPNPCOMMAND_SUCCESS)
|
if(r!=UPNPCOMMAND_SUCCESS)
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
/** Set maximum number of rows returned, -1 if unlimited. */
|
/** Set maximum number of rows returned, -1 if unlimited. */
|
||||||
void setLimit(int limit);
|
void setLimit(int limit);
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
protected:
|
protected:
|
||||||
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
|
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
|
||||||
|
|
||||||
|
@ -716,8 +716,8 @@ inline bool AffinityBugWorkaround(void(*pfn)(void*))
|
|||||||
|
|
||||||
inline uint32_t ByteReverse(uint32_t value)
|
inline uint32_t ByteReverse(uint32_t value)
|
||||||
{
|
{
|
||||||
value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8);
|
value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8);
|
||||||
return (value<<16) | (value>>16);
|
return (value<<16) | (value>>16);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user