Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
5ed4046d
Commit
5ed4046d
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
STORM-744 : Throw exception consistently so llkdu fails consistently
parent
d83314ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llkdu/llimagej2ckdu.cpp
+2
-2
2 additions, 2 deletions
indra/llkdu/llimagej2ckdu.cpp
indra/llkdu/tests/llimagej2ckdu_test.cpp
+1
-1
1 addition, 1 deletion
indra/llkdu/tests/llimagej2ckdu_test.cpp
with
3 additions
and
3 deletions
indra/llkdu/llimagej2ckdu.cpp
+
2
−
2
View file @
5ed4046d
...
...
@@ -231,13 +231,13 @@ void LLImageJ2CKDU::setupCodeStream(LLImageJ2C &base, BOOL keep_codestream, ECod
if
(
!
mInputp
)
{
llassert
(
base
.
getData
());
llassert
_always
(
base
.
getData
());
// The compressed data has been loaded
// Setup the source for the codestrea
mInputp
=
new
LLKDUMemSource
(
base
.
getData
(),
data_size
);
}
llassert
(
mInputp
);
llassert
_always
(
mInputp
);
mInputp
->
reset
();
mCodeStreamp
=
new
kdu_codestream
;
...
...
This diff is collapsed.
Click to expand it.
indra/llkdu/tests/llimagej2ckdu_test.cpp
+
1
−
1
View file @
5ed4046d
...
...
@@ -219,7 +219,7 @@ namespace tut
{
LLImageJ2C
*
image
=
new
LLImageJ2C
();
BOOL
res
=
mImage
->
callGetMetadata
(
*
image
);
// Trying to set up a data stream with all NIL values will
fail and
return FALSE
// Trying to set up a data stream with all NIL values will
throw an exception that will be caught and will
return FALSE
ensure
(
"getMetadata() test failed"
,
res
==
FALSE
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment