From b376526c1dce67ddbca4e7917df2190c85d79efd Mon Sep 17 00:00:00 2001 From: Aaron Cuevas Lopez <aacuelo@teleco.upv.es> Date: Wed, 21 Sep 2016 18:52:51 -0700 Subject: [PATCH] Fix NWB compilation issues on Linux --- Source/Plugins/NWBFormat/NWBFormat.cpp | 4 ++-- Source/Plugins/NWBFormat/NWBFormat.h | 4 ++-- Source/Plugins/NWBFormat/OpenEphysLib.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Plugins/NWBFormat/NWBFormat.cpp b/Source/Plugins/NWBFormat/NWBFormat.cpp index 8b1047fa4..475e46c95 100644 --- a/Source/Plugins/NWBFormat/NWBFormat.cpp +++ b/Source/Plugins/NWBFormat/NWBFormat.cpp @@ -306,7 +306,7 @@ int NWBFile::createFileStructure() return filename; } - HDF5RecordingData* NWBFile::createRecordingStructures(String basePath, NWBRecordingInfo& info, String helpText, int chunk_size, String ancestry) + HDF5RecordingData* NWBFile::createRecordingStructures(String basePath, const NWBRecordingInfo& info, String helpText, int chunk_size, String ancestry) { StringArray ancestryStrings; ancestryStrings.add("TimeSeries"); @@ -339,4 +339,4 @@ int NWBFile::createFileStructure() dSet = createDataSet(STR, 1, 0, path + "/" + name); if (!dSet) return; dSet->writeDataBlock(1, STR, text.toUTF8()); - } \ No newline at end of file + } diff --git a/Source/Plugins/NWBFormat/NWBFormat.h b/Source/Plugins/NWBFormat/NWBFormat.h index f8903bbeb..cfb8793bb 100644 --- a/Source/Plugins/NWBFormat/NWBFormat.h +++ b/Source/Plugins/NWBFormat/NWBFormat.h @@ -61,7 +61,7 @@ namespace NWBRecording int createFileStructure() override; private: - HDF5RecordingData* createRecordingStructures(String basePath, NWBRecordingInfo& info, String helpText, int chunk_size, String ancestry); + HDF5RecordingData* createRecordingStructures(String basePath, const NWBRecordingInfo& info, String helpText, int chunk_size, String ancestry); void createTextDataSet(String path, String name, String text); const String filename; @@ -100,4 +100,4 @@ namespace NWBRecording } -#endif \ No newline at end of file +#endif diff --git a/Source/Plugins/NWBFormat/OpenEphysLib.cpp b/Source/Plugins/NWBFormat/OpenEphysLib.cpp index 14ccc5175..99aac97c7 100644 --- a/Source/Plugins/NWBFormat/OpenEphysLib.cpp +++ b/Source/Plugins/NWBFormat/OpenEphysLib.cpp @@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. using namespace Plugin; -#define NUM_PLUGINS 2 +#define NUM_PLUGINS 1 extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info) { @@ -67,4 +67,4 @@ BOOL WINAPI DllMain(IN HINSTANCE hDllHandle, return TRUE; } -#endif \ No newline at end of file +#endif -- GitLab