Removing few cppchecks warnings.

This commit is contained in:
Guillaume Poussel 2011-01-04 22:40:36 +01:00 committed by David Tardon
parent d7d7b15e94
commit ed26218fdf
6 changed files with 5 additions and 5 deletions

View file

@ -290,7 +290,7 @@ void init_ignorepara(string fullcommand) {
bool is_ignorepara(const string &para) {
for( vector<string>::iterator it = ignorepara_vec.begin();
it != ignorepara_vec.end(); it++ ) {
it != ignorepara_vec.end(); ++it ) {
if ( para.find(*it) != string::npos ) {
if ( debug )
cerr << "Found execption para: " << para << endl;

View file

@ -51,7 +51,6 @@ void usage()
int main(int argc, char *argv[])
{
int rc;
int silent=0;
void *phandle;
char *(*pfun)(void);
@ -66,7 +65,7 @@ int main(int argc, char *argv[])
++argv, --argc;
}
if ( (rc = access( argv[1], R_OK )) == -1 ) {
if ( access( argv[1], R_OK ) == -1 ) {
fprintf(stderr, "%s: ERROR: %s: %s\n",
pprog_name, argv[1], strerror(errno));
return 2;

View file

@ -755,6 +755,7 @@ main( int argc, char **argv )
pDump->PrintDefFile();
pDump->PrintDataBase();
delete pDump;
delete [] pLibName;
return 0;
}

View file

@ -42,6 +42,7 @@ void IncludesCollection::add_to_collection(const string& dirPath) {
while ((pent = readdir(pdir))) {
dirContent.insert(pent->d_name);
};
closedir(pdir);
#endif // defined( WNT )
allIncludes.insert(EntriesPair(dirPath, dirContent));
};

View file

@ -50,7 +50,7 @@ class tstMgr {
// </private_methods>
public:
tstMgr() : pImpl(0) {}
// <dtor>
~tstMgr(){
cleanup();

View file

@ -93,7 +93,6 @@ void tLog::initialize( const ::rtl::OString& name ) {
}
sal_uInt64 uBytes=0;
sal_uInt32 len = ln( buf );
const sal_Char* ptr = buf;
if ( v ) {
fprintf( stderr, "%s", buf );