Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2985:32ec5078e32b
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Dec 2018 09:20:57 +0100 |
parents | db8f360fcb41 |
children | 9cc3d40e389b |
comparison
equal
deleted
inserted
replaced
2984:db8f360fcb41 | 2985:32ec5078e32b |
---|---|
1355 return false; | 1355 return false; |
1356 } | 1356 } |
1357 } | 1357 } |
1358 | 1358 |
1359 | 1359 |
1360 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 3) | |
1360 const char* AutodetectMimeType(const std::string& path) | 1361 const char* AutodetectMimeType(const std::string& path) |
1361 { | 1362 { |
1362 const char* mime = OrthancPluginAutodetectMimeType(GetGlobalContext(), path.c_str()); | 1363 const char* mime = OrthancPluginAutodetectMimeType(GetGlobalContext(), path.c_str()); |
1363 | 1364 |
1364 if (mime == NULL) | 1365 if (mime == NULL) |
1369 else | 1370 else |
1370 { | 1371 { |
1371 return mime; | 1372 return mime; |
1372 } | 1373 } |
1373 } | 1374 } |
1375 #endif | |
1374 | 1376 |
1375 | 1377 |
1376 #if HAS_ORTHANC_PLUGIN_PEERS == 1 | 1378 #if HAS_ORTHANC_PLUGIN_PEERS == 1 |
1377 size_t OrthancPeers::GetPeerIndex(const std::string& name) const | 1379 size_t OrthancPeers::GetPeerIndex(const std::string& name) const |
1378 { | 1380 { |