Removed unnecessary sf:: prefixes

This commit is contained in:
Jan Haller 2015-05-20 17:26:26 +02:00
parent 1b1d92d6bb
commit 6cec972338
11 changed files with 16 additions and 16 deletions

View File

@ -183,7 +183,7 @@ protected:
/// \param interval Processing interval /// \param interval Processing interval
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void setProcessingInterval(sf::Time interval); void setProcessingInterval(Time interval);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Start capturing audio data /// \brief Start capturing audio data
@ -260,7 +260,7 @@ private:
Thread m_thread; ///< Thread running the background recording task Thread m_thread; ///< Thread running the background recording task
std::vector<Int16> m_samples; ///< Buffer to store captured samples std::vector<Int16> m_samples; ///< Buffer to store captured samples
unsigned int m_sampleRate; ///< Sample rate unsigned int m_sampleRate; ///< Sample rate
sf::Time m_processingInterval; ///< Time period between calls to onProcessSamples Time m_processingInterval; ///< Time period between calls to onProcessSamples
bool m_isCapturing; ///< Capturing state bool m_isCapturing; ///< Capturing state
std::string m_deviceName; ///< Name of the audio capture device std::string m_deviceName; ///< Name of the audio capture device
}; };

View File

@ -278,7 +278,7 @@ private:
Page(); Page();
GlyphTable glyphs; ///< Table mapping code points to their corresponding glyph GlyphTable glyphs; ///< Table mapping code points to their corresponding glyph
sf::Texture texture; ///< Texture containing the pixels of the glyphs Texture texture; ///< Texture containing the pixels of the glyphs
unsigned int nextRow; ///< Y position of the next new row in the texture unsigned int nextRow; ///< Y position of the next new row in the texture
std::vector<Row> rows; ///< List containing the position of all the existing rows std::vector<Row> rows; ///< List containing the position of all the existing rows
}; };

View File

@ -399,7 +399,7 @@ public:
/// \param transform Transform to assign /// \param transform Transform to assign
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void setParameter(const std::string& name, const sf::Transform& transform); void setParameter(const std::string& name, const Transform& transform);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change a texture parameter of the shader /// \brief Change a texture parameter of the shader

View File

@ -187,7 +187,7 @@ public:
/// \see loadFromFile, loadFromMemory, loadFromImage /// \see loadFromFile, loadFromMemory, loadFromImage
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool loadFromStream(sf::InputStream& stream, const IntRect& area = IntRect()); bool loadFromStream(InputStream& stream, const IntRect& area = IntRect());
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Load the texture from an image /// \brief Load the texture from an image

View File

@ -123,7 +123,7 @@ private:
// Member data // Member data
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
#ifdef ANDROID #ifdef ANDROID
sf::priv::ResourceStream *m_file; priv::ResourceStream* m_file;
#else #else
std::FILE* m_file; ///< stdio file stream std::FILE* m_file; ///< stdio file stream
#endif #endif

View File

@ -77,7 +77,7 @@ public:
{ {
Identification(); Identification();
sf::String name; ///< Name of the joystick String name; ///< Name of the joystick
unsigned int vendorId; ///< Manufacturer identifier unsigned int vendorId; ///< Manufacturer identifier
unsigned int productId; ///< Product identifier unsigned int productId; ///< Product identifier
}; };

View File

@ -135,7 +135,7 @@ std::vector<std::string> SoundRecorder::getAvailableDevices()
{ {
std::vector<std::string> deviceNameList; std::vector<std::string> deviceNameList;
const ALchar *deviceList = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER); const ALchar* deviceList = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);
if (deviceList) if (deviceList)
{ {
while (*deviceList) while (*deviceList)
@ -210,7 +210,7 @@ bool SoundRecorder::isAvailable()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void SoundRecorder::setProcessingInterval(sf::Time interval) void SoundRecorder::setProcessingInterval(Time interval)
{ {
m_processingInterval = interval; m_processingInterval = interval;
} }

View File

@ -385,7 +385,7 @@ void Shader::setParameter(const std::string& name, const Color& color)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void Shader::setParameter(const std::string& name, const sf::Transform& transform) void Shader::setParameter(const std::string& name, const Transform& transform)
{ {
if (m_shaderProgram) if (m_shaderProgram)
{ {
@ -768,7 +768,7 @@ void Shader::setParameter(const std::string& name, const Color& color)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void Shader::setParameter(const std::string& name, const sf::Transform& transform) void Shader::setParameter(const std::string& name, const Transform& transform)
{ {
} }

View File

@ -66,7 +66,7 @@ void Shape::setTexture(const Texture* texture, bool resetRect)
if (texture) if (texture)
{ {
// Recompute the texture area if requested, or if there was no texture & rect before // Recompute the texture area if requested, or if there was no texture & rect before
if (resetRect || (!m_texture && (m_textureRect == sf::IntRect()))) if (resetRect || (!m_texture && (m_textureRect == IntRect())))
setTextureRect(IntRect(0, 0, texture->getSize().x, texture->getSize().y)); setTextureRect(IntRect(0, 0, texture->getSize().x, texture->getSize().y));
} }

View File

@ -179,7 +179,7 @@ Socket::Status TcpSocket::connect(const IpAddress& remoteAddress, unsigned short
{ {
// At this point the connection may have been either accepted or refused. // At this point the connection may have been either accepted or refused.
// To know whether it's a success or a failure, we must check the address of the connected peer // To know whether it's a success or a failure, we must check the address of the connected peer
if (getRemoteAddress() != sf::IpAddress::None) if (getRemoteAddress() != IpAddress::None)
{ {
// Connection accepted // Connection accepted
status = Done; status = Done;

View File

@ -60,7 +60,7 @@ bool FileInputStream::open(const std::string& filename)
#ifdef ANDROID #ifdef ANDROID
if (m_file) if (m_file)
delete m_file; delete m_file;
m_file = new sf::priv::ResourceStream(filename); m_file = new priv::ResourceStream(filename);
return m_file->tell() != -1; return m_file->tell() != -1;
#else #else
if (m_file) if (m_file)
@ -128,9 +128,9 @@ Int64 FileInputStream::getSize()
#else #else
if (m_file) if (m_file)
{ {
sf::Int64 position = tell(); Int64 position = tell();
std::fseek(m_file, 0, SEEK_END); std::fseek(m_file, 0, SEEK_END);
sf::Int64 size = tell(); Int64 size = tell();
seek(position); seek(position);
return size; return size;
} }