Commit b843b42c authored by Oliver Sander's avatar Oliver Sander Committed by Albert Astals Cid

Replace 'auto' by actual types

parent 7f32f8b7
Pipeline #25487 passed with stages
in 30 minutes and 8 seconds
......@@ -580,7 +580,7 @@ build_ocg_state (PopplerDocument *document,
PopplerAction *action,
const LinkOCGState *ocg_state)
{
const auto *st_list = ocg_state->getStateList();
const std::vector<LinkOCGState::StateList*> *st_list = ocg_state->getStateList();
bool preserve_rb = ocg_state->getPreserveRB();
GList *layer_state = nullptr;
......
......@@ -656,7 +656,7 @@ poppler_page_get_selection_region (PopplerPage *page,
}
text = poppler_page_get_text_page (page);
auto list = text->getSelectionRegion(&poppler_selection,
std::vector<PDFRectangle*>* list = text->getSelectionRegion(&poppler_selection,
selection_style, scale);
for (std::size_t i = 0; i < list->size(); i++) {
......@@ -744,7 +744,7 @@ poppler_page_get_selected_region (PopplerPage *page,
}
text = poppler_page_get_text_page (page);
auto list = text->getSelectionRegion(&poppler_selection,
std::vector<PDFRectangle*>* list = text->getSelectionRegion(&poppler_selection,
selection_style, 1.0);
region = cairo_region_create ();
......@@ -2179,14 +2179,14 @@ poppler_page_get_text_layout_for_area (PopplerPage *page,
selection.y2 = area->y2;
text = poppler_page_get_text_page (page);
auto word_list = text->getSelectionWords (&selection, selectionStyleGlyph, &n_lines);
std::vector<TextWordSelection*>** word_list = text->getSelectionWords (&selection, selectionStyleGlyph, &n_lines);
if (!word_list)
return FALSE;
n_rects += n_lines - 1;
for (i = 0; i < n_lines; i++)
{
auto *line_words = word_list[i];
std::vector<TextWordSelection*> *line_words = word_list[i];
n_rects += line_words->size() - 1;
for (std::size_t j = 0; j < line_words->size(); j++)
{
......@@ -2200,7 +2200,7 @@ poppler_page_get_text_layout_for_area (PopplerPage *page,
for (i = 0; i < n_lines; i++)
{
auto *line_words = word_list[i];
std::vector<TextWordSelection*> *line_words = word_list[i];
for (std::size_t j = 0; j < line_words->size(); j++)
{
TextWordSelection *word_sel = (*line_words)[j];
......@@ -2363,13 +2363,13 @@ poppler_page_get_text_attributes_for_area (PopplerPage *page,
selection.y2 = area->y2;
text = poppler_page_get_text_page (page);
auto word_list = text->getSelectionWords (&selection, selectionStyleGlyph, &n_lines);
std::vector<TextWordSelection*>** word_list = text->getSelectionWords (&selection, selectionStyleGlyph, &n_lines);
if (!word_list)
return nullptr;
for (i = 0; i < n_lines; i++)
{
auto *line_words = word_list[i];
std::vector<TextWordSelection*> *line_words = word_list[i];
for (std::size_t j = 0; j < line_words->size(); j++)
{
TextWordSelection *word_sel = (*line_words)[j];
......
......@@ -606,7 +606,7 @@ namespace Poppler {
QVector<OutlineItem> result;
if (::Outline *outline = m_doc->doc->getOutline()) {
if (const auto *items = outline->getItems()) {
if (const std::vector<::OutlineItem*> *items = outline->getItems()) {
for (void *item : *items) {
result.push_back(OutlineItem{new OutlineItemData{static_cast<::OutlineItem *>(item), m_doc}});
}
......
......@@ -398,11 +398,11 @@ namespace Poppler
QSet<OptContentItem *> changedItems;
const auto *statesList = popplerLinkOCGState->getStateList();
const std::vector<::LinkOCGState::StateList*> *statesList = popplerLinkOCGState->getStateList();
for (std::size_t i = 0; i < statesList->size(); ++i) {
::LinkOCGState::StateList *stateList = (*statesList)[i];
auto *refsList = stateList->list;
std::vector<Ref*> *refsList = stateList->list;
for (std::size_t j = 0; j < refsList->size(); ++j) {
Ref *ref = (*refsList)[j];
OptContentItem *item = d->itemFromRef(QString::number(ref->num));
......
......@@ -165,7 +165,7 @@ QVector<OutlineItem> OutlineItem::children() const
if (::OutlineItem *data = m_data->data) {
data->open();
if (const auto *kids = data->getKids()) {
if (const std::vector<::OutlineItem*> *kids = data->getKids()) {
for (void *kid : *kids) {
result.push_back(OutlineItem{new OutlineItemData{static_cast<::OutlineItem *>(kid), m_data->documentData}});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment