mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Build fixes
This commit is contained in:
@@ -44,16 +44,16 @@ HTTPVersion& HTTPVersion::operator= (HTTPVersion const& other)
|
|||||||
|
|
||||||
String HTTPVersion::toString () const
|
String HTTPVersion::toString () const
|
||||||
{
|
{
|
||||||
return String::fromNumber (major ()) + "." +
|
return String::fromNumber (vmajor ()) + "." +
|
||||||
String::fromNumber (minor ());
|
String::fromNumber (vminor ());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned short HTTPVersion::major () const
|
unsigned short HTTPVersion::vmajor () const
|
||||||
{
|
{
|
||||||
return m_major;
|
return m_major;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned short HTTPVersion::minor () const
|
unsigned short HTTPVersion::vminor () const
|
||||||
{
|
{
|
||||||
return m_minor;
|
return m_minor;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ public:
|
|||||||
HTTPVersion (HTTPVersion const& other);
|
HTTPVersion (HTTPVersion const& other);
|
||||||
HTTPVersion& operator= (HTTPVersion const& other);
|
HTTPVersion& operator= (HTTPVersion const& other);
|
||||||
String toString () const;
|
String toString () const;
|
||||||
unsigned short major () const;
|
unsigned short vmajor () const;
|
||||||
unsigned short minor () const;
|
unsigned short vminor () const;
|
||||||
bool operator== (HTTPVersion const& rhs) const;
|
bool operator== (HTTPVersion const& rhs) const;
|
||||||
bool operator!= (HTTPVersion const& rhs) const;
|
bool operator!= (HTTPVersion const& rhs) const;
|
||||||
bool operator> (HTTPVersion const& rhs) const;
|
bool operator> (HTTPVersion const& rhs) const;
|
||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned short m_major;
|
unsigned short m_major;
|
||||||
unsigned short m_minor;;
|
unsigned short m_minor;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -329,9 +329,7 @@ bool Process::openDocument (const String& fileName, const String& parameters)
|
|||||||
String cmdString (fileName.replace (" ", "\\ ",false));
|
String cmdString (fileName.replace (" ", "\\ ",false));
|
||||||
cmdString << " " << parameters;
|
cmdString << " " << parameters;
|
||||||
|
|
||||||
if (URL::isProbablyAWebsiteURL (fileName)
|
if ( cmdString.startsWithIgnoreCase ("file:")
|
||||||
|| cmdString.startsWithIgnoreCase ("file:")
|
|
||||||
|| URL::isProbablyAnEmailAddress (fileName)
|
|
||||||
|| File::createFileWithoutCheckingPath (fileName).isDirectory()
|
|| File::createFileWithoutCheckingPath (fileName).isDirectory()
|
||||||
|| ! isFileExecutable (fileName))
|
|| ! isFileExecutable (fileName))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user