summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-21 12:14:44 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-21 14:30:47 +0100
commit7f11ed333cdc93e9e93d4677f857d97ffbbfec87 (patch)
tree48b444fa4f38d1cbc99e5fdb0fc473ab11823caa
parent56809b0359af7e9108adeb1fd21823a225edf6fa (diff)
downloadastra-7f11ed333cdc93e9e93d4677f857d97ffbbfec87.tar.gz
astra-7f11ed333cdc93e9e93d4677f857d97ffbbfec87.tar.bz2
astra-7f11ed333cdc93e9e93d4677f857d97ffbbfec87.tar.xz
astra-7f11ed333cdc93e9e93d4677f857d97ffbbfec87.zip
Fix whitespace
-rw-r--r--matlab/mex/astra_mex_plugin_c.cpp12
-rw-r--r--python/astra/src/PythonPluginAlgorithm.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/matlab/mex/astra_mex_plugin_c.cpp b/matlab/mex/astra_mex_plugin_c.cpp
index 0dc0edf..627e34a 100644
--- a/matlab/mex/astra_mex_plugin_c.cpp
+++ b/matlab/mex/astra_mex_plugin_c.cpp
@@ -128,12 +128,12 @@ void mexFunction(int nlhs, mxArray* plhs[],
initASTRAMex();
// SWITCH (MODE)
- if (sMode == std::string("get_registered")) {
- astra_mex_plugin_get_registered(nlhs, plhs, nrhs, prhs);
- }else if (sMode == std::string("get_help")) {
- astra_mex_plugin_get_help(nlhs, plhs, nrhs, prhs);
- }else if (sMode == std::string("register")) {
- astra_mex_plugin_register(nlhs, plhs, nrhs, prhs);
+ if (sMode == std::string("get_registered")) {
+ astra_mex_plugin_get_registered(nlhs, plhs, nrhs, prhs);
+ }else if (sMode == std::string("get_help")) {
+ astra_mex_plugin_get_help(nlhs, plhs, nrhs, prhs);
+ }else if (sMode == std::string("register")) {
+ astra_mex_plugin_register(nlhs, plhs, nrhs, prhs);
} else {
printHelp();
}
diff --git a/python/astra/src/PythonPluginAlgorithm.cpp b/python/astra/src/PythonPluginAlgorithm.cpp
index 1ea858d..0100bed 100644
--- a/python/astra/src/PythonPluginAlgorithm.cpp
+++ b/python/astra/src/PythonPluginAlgorithm.cpp
@@ -238,7 +238,7 @@ CAlgorithm * CPythonPluginAlgorithmFactory::getPlugin(const std::string &name){
CPluginAlgorithm *alg = NULL;
if(PyBytes_Check(className)){
std::string str = std::string(PyBytes_AsString(className));
- PyObject *pyclass = getClassFromString(str);
+ PyObject *pyclass = getClassFromString(str);
if(pyclass!=NULL){
alg = new CPluginAlgorithm(pyclass);
Py_DECREF(pyclass);