mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:37:45 +00:00
Assistant: Fix minor const-correctness issues
This commit is contained in:
parent
70d7fb6a03
commit
87e26d2fa4
2 changed files with 8 additions and 8 deletions
|
@ -52,7 +52,7 @@ private:
|
|||
|
||||
class AppResult final : public Result {
|
||||
public:
|
||||
AppResult(RefPtr<Gfx::Bitmap> bitmap, DeprecatedString title, DeprecatedString tooltip, NonnullRefPtr<Desktop::AppFile> af, DeprecatedString arguments, int score)
|
||||
AppResult(RefPtr<Gfx::Bitmap const> bitmap, DeprecatedString title, DeprecatedString tooltip, NonnullRefPtr<Desktop::AppFile> af, DeprecatedString arguments, int score)
|
||||
: Result(move(title), move(tooltip), score)
|
||||
, m_app_file(move(af))
|
||||
, m_arguments(move(arguments))
|
||||
|
@ -67,7 +67,7 @@ public:
|
|||
private:
|
||||
NonnullRefPtr<Desktop::AppFile> m_app_file;
|
||||
DeprecatedString m_arguments;
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
};
|
||||
|
||||
class CalculatorResult final : public Result {
|
||||
|
@ -83,7 +83,7 @@ public:
|
|||
virtual Gfx::Bitmap const* bitmap() const override { return m_bitmap; }
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
};
|
||||
|
||||
class FileResult final : public Result {
|
||||
|
@ -111,7 +111,7 @@ public:
|
|||
virtual Gfx::Bitmap const* bitmap() const override { return m_bitmap; }
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
};
|
||||
|
||||
class URLResult final : public Result {
|
||||
|
@ -127,7 +127,7 @@ public:
|
|||
virtual Gfx::Bitmap const* bitmap() const override { return m_bitmap; }
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
};
|
||||
|
||||
class Provider : public RefCounted<Provider> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue