Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
efcc6659
Commit
efcc6659
authored
Feb 06, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing warning act 3 before changing Wsing-compare errors
parent
cf91bdd0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
12 deletions
+27
-12
UBFileSystemUtils.cpp
src/frameworks/UBFileSystemUtils.cpp
+3
-1
LZWDecode.cpp
src/pdf-merger/LZWDecode.cpp
+5
-2
LZWDecode.h
src/pdf-merger/LZWDecode.h
+1
-1
OverlayDocumentParser.cpp
src/pdf-merger/OverlayDocumentParser.cpp
+6
-1
OverlayDocumentParser.h
src/pdf-merger/OverlayDocumentParser.h
+1
-1
Page.cpp
src/pdf-merger/Page.cpp
+1
-1
Rectangle.cpp
src/pdf-merger/Rectangle.cpp
+3
-3
Rectangle.h
src/pdf-merger/Rectangle.h
+1
-1
RotationHandler.h
src/pdf-merger/RotationHandler.h
+3
-1
Utils.cpp
src/pdf-merger/Utils.cpp
+3
-0
No files found.
src/frameworks/UBFileSystemUtils.cpp
View file @
efcc6659
...
...
@@ -16,10 +16,12 @@
#include "UBFileSystemUtils.h"
#include <QtGui>
#include "globals/UBGlobals.h"
THIRD_PARTY_WARNINGS_DISABLE
#include "quazipfile.h"
#include <openssl/md5.h>
THIRD_PARTY_WARNINGS_ENABLE
#include "core/memcheck.h"
...
...
src/pdf-merger/LZWDecode.cpp
View file @
efcc6659
...
...
@@ -13,6 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <QtGlobal>
#include "LZWDecode.h"
#include "FilterPredictor.h"
...
...
@@ -31,8 +32,9 @@ LZWDecode::LZWDecode():
_readBits
(
0
),
_nextCode
(
0
),
_bitsToRead
(
0
),
_curSequenceLength
(
0
),
_first
(
true
)
_first
(
true
),
_curSequenceLength
(
0
)
{
clearTable
();
}
...
...
@@ -46,6 +48,7 @@ LZWDecode::~LZWDecode()
bool
LZWDecode
::
encode
(
std
::
string
&
decoded
)
{
Q_UNUSED
(
decoded
);
return
true
;
}
...
...
src/pdf-merger/LZWDecode.h
View file @
efcc6659
...
...
@@ -37,8 +37,8 @@ namespace merge_lib
void
clearTable
();
int
getCode
();
std
::
string
&
_encoded
;
std
::
string
_dummy
;
std
::
string
&
_encoded
;
size_t
_curSymbolIndex
;
int
_earlyChange
;
// early parameter
...
...
src/pdf-merger/OverlayDocumentParser.cpp
View file @
efcc6659
...
...
@@ -15,6 +15,7 @@
#include "OverlayDocumentParser.h"
#include <fstream>
#include <string.h>
#include <QtGlobal>
#include "Exception.h"
#include "Object.h"
...
...
@@ -74,7 +75,6 @@ void OverlayDocumentParser::_readXRefAndCreateObjects()
notEndOfFile
=
false
;
}
unsigned
long
toReadAgain
=
0
;
for
(
objIter
=
objectsAndPositions
.
begin
();
objIter
!=
objectsAndPositions
.
end
();
)
{
if
((
objectsAndSizes
[
objIter
->
first
]
+
objIter
->
second
<=
nextPartStart
)
&&
(
objIter
->
second
>=
partStart
)
&&
((
objIter
->
second
<
nextPartStart
)))
...
...
@@ -100,6 +100,11 @@ void OverlayDocumentParser::_readXRefAndCreateObjects()
while
(
notEndOfFile
);
}
void
OverlayDocumentParser
::
_getFileContent
(
const
char
*
fileName
)
{
Q_UNUSED
(
fileName
);
}
void
OverlayDocumentParser
::
_getPartOfFileContent
(
long
startOfPart
,
unsigned
int
length
)
{
ifstream
pdfFile
;
...
...
src/pdf-merger/OverlayDocumentParser.h
View file @
efcc6659
...
...
@@ -38,7 +38,7 @@ namespace merge_lib
private
:
//methods
void
_getFileContent
(
const
char
*
fileName
){}
;
void
_getFileContent
(
const
char
*
fileName
)
;
void
_readXRefAndCreateObjects
();
void
_readXref
(
std
::
map
<
unsigned
int
,
unsigned
long
>
&
objectsAndSizes
);
void
_getPartOfFileContent
(
long
startOfPart
,
unsigned
int
length
);
...
...
src/pdf-merger/Page.cpp
View file @
efcc6659
...
...
@@ -37,7 +37,7 @@
using
namespace
merge_lib
;
Page
::
Page
(
unsigned
int
pageNumber
)
:
_
pageNumber
(
pageNumber
),
_root
(
NULL
),
_rotation
(
0
)
Page
::
Page
(
unsigned
int
pageNumber
)
:
_
root
(
NULL
),
_pageNumber
(
pageNumber
),
_rotation
(
0
)
{
}
...
...
src/pdf-merger/Rectangle.cpp
View file @
efcc6659
...
...
@@ -24,21 +24,21 @@
using
namespace
merge_lib
;
Rectangle
::
Rectangle
(
const
char
*
rectangleName
)
:
_rectangleName
(
rectangleName
),
x1
(
0
),
y1
(
0
),
x2
(
0
),
y2
(
0
),
_rectangleName
(
rectangleName
),
_tm
()
{}
Rectangle
::
Rectangle
(
const
char
*
rectangleName
,
const
std
::
string
content
)
:
_rectangleName
(
rectangleName
),
x1
(
0
),
y1
(
0
),
x2
(
0
),
y2
(
0
)
y2
(
0
),
_rectangleName
(
rectangleName
)
{
unsigned
int
rectanglePosition
=
Parser
::
findToken
(
content
,
rectangleName
);
...
...
src/pdf-merger/Rectangle.h
View file @
efcc6659
...
...
@@ -40,7 +40,7 @@ namespace merge_lib
double
getHeight
();
//members
double
x1
,
x2
,
y1
,
y2
;
double
x1
,
y1
,
x2
,
y2
;
private
:
//methods
const
std
::
string
_getRectangleAsString
(
const
char
*
delimeter
);
...
...
src/pdf-merger/RotationHandler.h
View file @
efcc6659
...
...
@@ -15,6 +15,8 @@
#if !defined RotationHandler_h
#define RotationHandler_h
#include <QtGlobal>
#include "PageElementHandler.h"
#include "Page.h"
...
...
@@ -55,7 +57,7 @@ namespace merge_lib
strin
>>
rotation
;
_basePage
.
setRotation
(
rotation
);
}
virtual
void
_changeObjectContent
(
unsigned
int
startOfPageElement
)
{};
virtual
void
_changeObjectContent
(
unsigned
int
startOfPageElement
)
{
Q_UNUSED
(
startOfPageElement
);
};
//members
Page
&
_basePage
;
...
...
src/pdf-merger/Utils.cpp
View file @
efcc6659
...
...
@@ -12,6 +12,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QtGlobal>
#include "Config.h"
#include "Utils.h"
#include "Exception.h"
...
...
@@ -101,6 +103,7 @@ bool Utils::doubleEquals(const double left, const double right, const double eps
double
Utils
::
normalizeValue
(
double
&
val
,
const
double
epsilon
)
{
Q_UNUSED
(
epsilon
);
if
(
Utils
::
doubleEquals
(
val
,
0
))
{
val
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment