mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
string_view refactor
This commit is contained in:
@@ -114,7 +114,7 @@ static Window GetWindowOfEvent(XEvent* event, bool& windowEvent)
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::shared_ptr<IWindow> _WindowXlibNew(const std::string& title,
|
||||
std::shared_ptr<IWindow> _WindowXlibNew(std::string_view title,
|
||||
Display* display, void* xcbConn,
|
||||
int defaultScreen, XIM xIM, XIMStyle bestInputStyle, XFontSet fontset,
|
||||
GLXContext lastCtx, void* vulkanHandle, uint32_t drawSamples);
|
||||
|
||||
@@ -94,7 +94,7 @@ struct WindowWayland : IWindow
|
||||
{
|
||||
GraphicsContextWayland m_gfxCtx;
|
||||
|
||||
WindowWayland(const std::string& title)
|
||||
WindowWayland(std::string_view title)
|
||||
: m_gfxCtx(IGraphicsContext::EGraphicsAPI::OpenGL3_3, this)
|
||||
{
|
||||
|
||||
|
||||
@@ -936,7 +936,7 @@ class WindowXlib : public IWindow
|
||||
bool m_openGL = false;
|
||||
|
||||
public:
|
||||
WindowXlib(const std::string& title,
|
||||
WindowXlib(std::string_view title,
|
||||
Display* display, void* xcbConn,
|
||||
int defaultScreen, XIM xIM, XIMStyle bestInputStyle, XFontSet fontset,
|
||||
GLXContext lastCtx, void* vulkanHandle, uint32_t drawSamples)
|
||||
@@ -1131,7 +1131,7 @@ public:
|
||||
return std::string();
|
||||
}
|
||||
|
||||
void setTitle(const std::string& title)
|
||||
void setTitle(std::string_view title)
|
||||
{
|
||||
const unsigned char* c_title = (unsigned char*)title.c_str();
|
||||
XLockDisplay(m_xDisp);
|
||||
|
||||
Reference in New Issue
Block a user