1
Fork 0
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:
Andreas Kling 2021-05-06 12:34:51 +02:00
parent 297a2762cd
commit 434c190667
2 changed files with 10 additions and 5 deletions

View file

@ -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;
};
}