summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-01-17 11:19:44 -0500
committerGravatar Lioncash2019-01-17 11:19:52 -0500
commita661025637f301013d9da781e67334853162c6b3 (patch)
tree5ff229c5ba29aef84c1e87f940952704aeae05b7 /src/core/core.h
parentyuzu/web_browser: std::move std::function instances in OpenPage() (diff)
downloadyuzu-a661025637f301013d9da781e67334853162c6b3.tar.gz
yuzu-a661025637f301013d9da781e67334853162c6b3.tar.xz
yuzu-a661025637f301013d9da781e67334853162c6b3.zip
core/frontend/applets/web_browser: Make OpenPage() non-const
This is a function that definitely doesn't always have a non-modifying behavior across all implementations, so this should be made non-const. This gets rid of the need to mark data members as mutable to work around the fact mutating data members needs to occur.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/core.h b/src/core/core.h
index a53dbb4d4..511a5ad3a 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -243,17 +243,18 @@ public:
243 243
244 std::shared_ptr<FileSys::VfsFilesystem> GetFilesystem() const; 244 std::shared_ptr<FileSys::VfsFilesystem> GetFilesystem() const;
245 245
246 void SetProfileSelector(std::unique_ptr<Core::Frontend::ProfileSelectApplet> applet); 246 void SetProfileSelector(std::unique_ptr<Frontend::ProfileSelectApplet> applet);
247 247
248 const Core::Frontend::ProfileSelectApplet& GetProfileSelector() const; 248 const Frontend::ProfileSelectApplet& GetProfileSelector() const;
249 249
250 void SetSoftwareKeyboard(std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> applet); 250 void SetSoftwareKeyboard(std::unique_ptr<Frontend::SoftwareKeyboardApplet> applet);
251 251
252 const Core::Frontend::SoftwareKeyboardApplet& GetSoftwareKeyboard() const; 252 const Frontend::SoftwareKeyboardApplet& GetSoftwareKeyboard() const;
253 253
254 void SetWebBrowser(std::unique_ptr<Core::Frontend::WebBrowserApplet> applet); 254 void SetWebBrowser(std::unique_ptr<Frontend::WebBrowserApplet> applet);
255 255
256 const Core::Frontend::WebBrowserApplet& GetWebBrowser() const; 256 Frontend::WebBrowserApplet& GetWebBrowser();
257 const Frontend::WebBrowserApplet& GetWebBrowser() const;
257 258
258private: 259private:
259 System(); 260 System();