mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
TextEditor: Minor cleanups in the FileArgument class
* Remove unnecessary #include statements * Move it into the TextEditor namespace * Mark the single-argument constructor explicit * Use move() to avoid some unnecessary copies
This commit is contained in:
parent
297a2762cd
commit
434c190667
2 changed files with 10 additions and 5 deletions
|
@ -6,12 +6,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
class FileArgument final {
|
||||
public:
|
||||
FileArgument(String);
|
||||
explicit FileArgument(String);
|
||||
~FileArgument();
|
||||
|
||||
String filename() { return m_filename; }
|
||||
|
@ -23,3 +24,5 @@ private:
|
|||
Optional<size_t> m_line;
|
||||
Optional<size_t> m_column;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue