Remove unnecessary sf:: namespace

This commit is contained in:
Chris Thrasher 2025-02-20 12:00:03 -07:00
parent 15bfde50d3
commit 7f22f6c63a
6 changed files with 19 additions and 20 deletions

View File

@ -178,9 +178,9 @@ EglContext::EglContext(EglContext* /*shared*/, const ContextSettings& /*settings
{
EglContextImpl::ensureInit();
sf::err() << "Warning: context has not been initialized. The constructor EglContext(shared, settings, size) is "
"currently not implemented."
<< std::endl;
err() << "Warning: context has not been initialized. The constructor EglContext(shared, settings, size) is "
"currently not implemented."
<< std::endl;
}

View File

@ -419,7 +419,7 @@ void JoystickImpl::initialize()
if (!udevContext)
{
sf::err() << "Failed to create udev context, joystick support not available" << std::endl;
err() << "Failed to create udev context, joystick support not available" << std::endl;
return;
}

View File

@ -1190,7 +1190,7 @@ void WindowImplX11::requestFocus()
XWindowAttributes attributes;
if (XGetWindowAttributes(m_display.get(), m_window, &attributes) == 0)
{
sf::err() << "Failed to check if window is viewable while requesting focus" << std::endl;
err() << "Failed to check if window is viewable while requesting focus" << std::endl;
return; // error getting attribute
}
@ -1588,7 +1588,7 @@ void WindowImplX11::initialize()
if (allWindows.empty())
{
if (!initRawMouse(m_display.get()))
sf::err() << "Failed to initialize raw mouse input" << std::endl;
err() << "Failed to initialize raw mouse input" << std::endl;
}
// Show the window

View File

@ -268,9 +268,9 @@ bool JoystickImpl::open(unsigned int index)
if (min != 0 || max != 7)
{
sf::err() << std::hex << "Joystick (vendor/product id: 0x" << m_identification.vendorId
<< "/0x" << m_identification.productId << std::dec
<< ") range is an unexpected one: [" << min << ", " << max << "]" << std::endl;
err() << std::hex << "Joystick (vendor/product id: 0x" << m_identification.vendorId
<< "/0x" << m_identification.productId << std::dec
<< ") range is an unexpected one: [" << min << ", " << max << "]" << std::endl;
}
else
{
@ -285,16 +285,16 @@ bool JoystickImpl::open(unsigned int index)
// See §3.4.3 Usage Types (Collection) of HUT v1.12
if (IOHIDElementGetCollectionType(element) != kIOHIDElementCollectionTypeApplication)
{
sf::err() << std::hex << "Gamepage (vendor/product id: 0x" << m_identification.vendorId
<< "/0x" << m_identification.productId << ") is not an CA but a 0x"
<< IOHIDElementGetCollectionType(element) << std::dec << std::endl;
err() << std::hex << "Gamepage (vendor/product id: 0x" << m_identification.vendorId << "/0x"
<< m_identification.productId << ") is not an CA but a 0x"
<< IOHIDElementGetCollectionType(element) << std::dec << std::endl;
}
break;
default:
#ifdef SFML_DEBUG
sf::err() << "Unexpected usage for element of Page Generic Desktop: 0x" << std::hex
<< IOHIDElementGetUsage(element) << std::dec << std::endl;
err() << "Unexpected usage for element of Page Generic Desktop: 0x" << std::hex
<< IOHIDElementGetUsage(element) << std::dec << std::endl;
#endif
break;
}

View File

@ -45,7 +45,7 @@ std::vector<VideoMode> VideoModeImpl::getFullscreenModes()
if (cgmodes == nullptr)
{
sf::err() << "Couldn't get VideoMode for main display." << std::endl;
err() << "Couldn't get VideoMode for main display." << std::endl;
return {};
}

View File

@ -116,11 +116,10 @@ WindowImplCocoa::WindowImplCocoa(WindowHandle handle)
}
else
{
sf::err() << "Cannot import this Window Handle because it is neither "
<< "a <NSWindow*> nor <NSView*> object "
<< "(or any of their subclasses). You gave a <" << [[nsHandle className] UTF8String] << "> object."
<< std::endl;
err() << "Cannot import this Window Handle because it is neither "
<< "a <NSWindow*> nor <NSView*> object "
<< "(or any of their subclasses). You gave a <" << [[nsHandle className] UTF8String] << "> object."
<< std::endl;
return;
}