Commit 40efa729 authored by Fabio D'Urso's avatar Fabio D'Urso Committed by Albert Astals Cid
Browse files

Replaced forward declaration of enum CryptAlgorithm with a proper #include

Forward-declaring enums is illegal. It hasn't caused problems so far
because XRef.h includes Object.h, which in turn includes Stream.h, where
the enum is defined.
Therefore, enum is alreadly defined when the compiler reaches that line.

To avoid future issues, I've replaced it with a proper #include "Stream.h"
(which expands to nothing as Stream.h has already been included at that
point).

I've also added a #include in XRef.h because it references enum
CryptAlgorithm too. Also in this case, it expands to nothing.
parent 0f7c17d7
......@@ -43,10 +43,10 @@
#include "Page.h"
#include "Annot.h"
#include "OptionalContent.h"
#include "Stream.h"
class GooString;
class BaseStream;
enum CryptAlgorithm;
class OutputDev;
class Links;
class LinkAction;
......
......@@ -36,6 +36,7 @@
#include "goo/gtypes.h"
#include "Object.h"
#include "Stream.h"
#include <vector>
......
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