mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibCore: Add a forward declaration header
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph.
This commit is contained in:
parent
3bbf4610d2
commit
8f7333f080
35 changed files with 143 additions and 38 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibMarkdown/MDDocument.h>
|
||||
|
@ -45,7 +46,8 @@ int main(int argc, char* argv[])
|
|||
else
|
||||
file_name = argv[i];
|
||||
|
||||
auto file = Core::File::construct();;
|
||||
auto file = Core::File::construct();
|
||||
;
|
||||
bool success;
|
||||
if (file_name == nullptr) {
|
||||
success = file->open(STDIN_FILENO, Core::IODevice::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescription::No);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue