Skip to content

Commit c16f646

Browse files
committed
fixups
1 parent 57c39cc commit c16f646

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

plugins/assimp/module/Testing/TestF3DAssimpImporterStreamError.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
int TestF3DAssimpImporterStreamError(int vtkNotUsed(argc), char* argv[])
1010
{
11-
std::string hint;
12-
if (vtkF3DAssimpImporter::CanReadFile(nullptr, hint))
11+
if (vtkF3DAssimpImporter::CanReadFile(nullptr))
1312
{
1413
std::cerr << "Unexpected success CanReadFile(nullptr)\n";
1514
return EXIT_FAILURE;

plugins/assimp/module/vtkF3DAssimpImporter.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include <regex>
4545
#include <set>
4646

47-
#include <iostream>
4847
vtkStandardNewMacro(vtkF3DAssimpImporter);
4948

5049
class vtkF3DAssimpImporter::vtkInternals
@@ -1241,6 +1240,13 @@ void vtkF3DAssimpImporter::ImportLights(vtkRenderer* renderer)
12411240
this->Internals->ImportLights(renderer);
12421241
}
12431242

1243+
//------------------------------------------------------------------------------
1244+
bool vtkF3DAssimpImporter::CanReadFile(vtkResourceStream* stream)
1245+
{
1246+
std::string unused;
1247+
return vtkF3DAssimpImporter::CanReadFile(stream, unused);
1248+
}
1249+
12441250
//------------------------------------------------------------------------------
12451251
bool vtkF3DAssimpImporter::CanReadFile(vtkResourceStream* stream, std::string& hint)
12461252
{

plugins/assimp/module/vtkF3DAssimpImporter.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,16 @@ class vtkF3DAssimpImporter : public vtkF3DImporter
107107
*/
108108
void SetCamera(vtkIdType camIndex) override;
109109

110+
///@{
110111
/**
111112
* Return true if, after a quick check of file header, it looks like the provided stream
112-
* can be read. Return false if it is sure it cannot be read as a strean.
113+
* can be read. Return false if it is sure it cannot be read as a stream.
113114
*
114-
* This only checks that the first 5 bytes spells "Ogawa".
115+
* hint is provided to be used as MemoryHint
115116
*/
116117
static bool CanReadFile(vtkResourceStream* stream, std::string& hint);
118+
static bool CanReadFile(vtkResourceStream* stream);
119+
///@}
117120

118121
protected:
119122
vtkF3DAssimpImporter();

0 commit comments

Comments
 (0)