mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
2ff37d7e13
This prevents memory leaks detected by both Valgrind and ASAN/LSAN. Valgrind is still suspicious of the leaked JS::VM from Web::Bindings::main_thread_vm() but there's other issues with leak checking all the GC'd objects. Co-Authored-By: Diego Iastrubni <diegoiast@gmail.com>
27 lines
412 B
C++
27 lines
412 B
C++
/*
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define AK_DONT_REPLACE_STD
|
|
|
|
#include <AK/String.h>
|
|
#include <QSettings>
|
|
|
|
namespace Browser {
|
|
|
|
class Settings {
|
|
public:
|
|
Settings(QObject* parent);
|
|
|
|
QString homepage();
|
|
void set_homepage(QString const& homepage);
|
|
|
|
private:
|
|
QSettings* m_qsettings;
|
|
};
|
|
|
|
}
|