* Destructor.
*/
ReDirOptions::~ReDirOptions(){
- delete m_compoundUsage;
+ delete[] m_compoundUsage;
}
/**
* Initializes the compound usage message array.
* @param size the size of the array: size = (field1 + field2 + ...) * sizeof(const char*)
*/
void ReDirOptions::initCompoundUsage(size_t size){
- delete m_compoundUsage;
+ delete[] m_compoundUsage;
int count = size / sizeof m_compoundUsage[0];
m_compoundUsage = new const char*[count];
memset(m_compoundUsage, 0, size);
if (arguments.length() + script.length() == 0)
help(i18n("one of the option must be set: -a (--arguments) or -c (--script)"));
bool verbose = ! m_programArgs.getBool("quiet");
- bool isExe = ! m_programArgs.getBool("isexe");
+#if defined __WIN32__
+ bool isExe = m_programArgs.getBool("isexe");
+#endif
setFilterFromProgramArgs(filter);
if (m_programArgs.getArgCount() == 0)
help(i18n("no arguments given (missing path)"));
}
if (script.length() > 0){
line.setLength(0);
+#if defined __WIN32__
if (! isExe)
line.append("call ");
+#endif
line.append(script).append(" ").append(delim, -1);
line.append(entry->m_path).append(entry->node(), -1);
line.append(delim, -1);