mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 08:33:48 +01:00
Same consts
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
596262bb43
commit
108533804b
@ -35,7 +35,7 @@ draw_links(zathura_t* zathura)
|
|||||||
/* set pages to draw links */
|
/* set pages to draw links */
|
||||||
bool show_links = false;
|
bool show_links = false;
|
||||||
unsigned int page_offset = 0;
|
unsigned int page_offset = 0;
|
||||||
unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
const unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
||||||
for (unsigned int page_id = 0; page_id < number_of_pages; page_id++) {
|
for (unsigned int page_id = 0; page_id < number_of_pages; page_id++) {
|
||||||
zathura_page_t* page = zathura_document_get_page(zathura->document, page_id);
|
zathura_page_t* page = zathura_document_get_page(zathura->document, page_id);
|
||||||
if (page == NULL) {
|
if (page == NULL) {
|
||||||
@ -74,7 +74,7 @@ sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
|||||||
girara_setting_get(session, "abort-clear-search", &clear_search);
|
girara_setting_get(session, "abort-clear-search", &clear_search);
|
||||||
|
|
||||||
if (zathura->document != NULL) {
|
if (zathura->document != NULL) {
|
||||||
unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
const unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
|
||||||
for (unsigned int page_id = 0; page_id < number_of_pages; ++page_id) {
|
for (unsigned int page_id = 0; page_id < number_of_pages; ++page_id) {
|
||||||
zathura_page_t* page = zathura_document_get_page(zathura->document, page_id);
|
zathura_page_t* page = zathura_document_get_page(zathura->document, page_id);
|
||||||
if (page == NULL) {
|
if (page == NULL) {
|
||||||
@ -469,7 +469,7 @@ sc_rotate(girara_session_t* session, girara_argument_t* argument,
|
|||||||
zathura_t* zathura = session->global.data;
|
zathura_t* zathura = session->global.data;
|
||||||
g_return_val_if_fail(zathura->document != NULL, false);
|
g_return_val_if_fail(zathura->document != NULL, false);
|
||||||
|
|
||||||
unsigned int page_number = zathura_document_get_current_page_number(zathura->document);
|
const unsigned int page_number = zathura_document_get_current_page_number(zathura->document);
|
||||||
|
|
||||||
int angle = 90;
|
int angle = 90;
|
||||||
if (argument != NULL && argument->n == ROTATE_CCW) {
|
if (argument != NULL && argument->n == ROTATE_CCW) {
|
||||||
|
Loading…
Reference in New Issue
Block a user