mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57:34 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -7,12 +7,12 @@
|
|||
#include "OutlineModel.h"
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
|
||||
NonnullRefPtr<OutlineModel> OutlineModel::create(const NonnullRefPtr<PDF::OutlineDict>& outline)
|
||||
NonnullRefPtr<OutlineModel> OutlineModel::create(NonnullRefPtr<PDF::OutlineDict> const& outline)
|
||||
{
|
||||
return adopt_ref(*new OutlineModel(outline));
|
||||
}
|
||||
|
||||
OutlineModel::OutlineModel(const NonnullRefPtr<PDF::OutlineDict>& outline)
|
||||
OutlineModel::OutlineModel(NonnullRefPtr<PDF::OutlineDict> const& outline)
|
||||
: m_outline(outline)
|
||||
{
|
||||
m_closed_item_icon.set_bitmap_for_size(16, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/book.png").release_value_but_fixme_should_propagate_errors());
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
class OutlineModel final : public GUI::Model {
|
||||
public:
|
||||
static NonnullRefPtr<OutlineModel> create(const NonnullRefPtr<PDF::OutlineDict>& outline);
|
||||
static NonnullRefPtr<OutlineModel> create(NonnullRefPtr<PDF::OutlineDict> const& outline);
|
||||
|
||||
void set_index_open_state(const GUI::ModelIndex& index, bool is_open);
|
||||
|
||||
|
@ -23,7 +23,7 @@ public:
|
|||
virtual GUI::ModelIndex index(int row, int column, const GUI::ModelIndex&) const override;
|
||||
|
||||
private:
|
||||
OutlineModel(const NonnullRefPtr<PDF::OutlineDict>& outline);
|
||||
OutlineModel(NonnullRefPtr<PDF::OutlineDict> const& outline);
|
||||
|
||||
GUI::Icon m_closed_item_icon;
|
||||
GUI::Icon m_open_item_icon;
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
ALWAYS_INLINE u32 current_page() const { return m_current_page_index; }
|
||||
ALWAYS_INLINE void set_current_page(u32 current_page) { m_current_page_index = current_page; }
|
||||
|
||||
ALWAYS_INLINE const RefPtr<PDF::Document>& document() const { return m_document; }
|
||||
ALWAYS_INLINE RefPtr<PDF::Document> const& document() const { return m_document; }
|
||||
void set_document(RefPtr<PDF::Document>);
|
||||
|
||||
Function<void(u32 new_page)> on_page_change;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
const char* file_path = nullptr;
|
||||
char const* file_path = nullptr;
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_positional_argument(file_path, "PDF file to open", "path", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(arguments);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue