[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/indexlib
From:       Luís Pedro Coelho <luis () luispedro ! org>
Date:       2005-10-20 14:23:07
Message-ID: 1129818187.404846.3879.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 472350 by luis_pedro:

Remove boost dependency.


 M  +3 -8      main.cpp  


--- branches/KDE/3.5/kdepim/indexlib/main.cpp #472349:472350
@@ -34,9 +34,6 @@
 #include "manager.h"
 #include "mmap_manager.h"
 #include "mempool.h"
-#include "index_slow.h"
-#include "ifile.h"
-#include "quotes.h"
 #include "compressed.h"
 #include "create.h"
 #include <map>
@@ -46,7 +43,6 @@
 #include <fstream>
 #include <memory>
 #include <string.h>
-#include "format.h"
 
 typedef std::auto_ptr<indexlib::index> index_smart;
 
@@ -116,7 +112,6 @@
 	if ( argv[ 4 ] ) input = argv[ 4 ];
 	else input = argv[ 3 ];
 	t->add( read_string( input ), argv[ 3 ] );
-	//std::cout << format( "%s indexed as %s\n" ) % argv[ 3 ] % -1; //FIXME
 
 	return 0;
 }
@@ -132,7 +127,7 @@
 	else {
 		for ( std::vector<unsigned>::const_iterator first = files.begin(), past = files.end();
 				first != past; ++first ) {
-			std::cout << format( "%s\n" ) % t->lookup_docname( *first );
+			std::cout << t->lookup_docname( *first ) << std::endl;
 		}
 	}
 	return 0;
@@ -143,7 +138,7 @@
 
 	unsigned ndocs = t->ndocs();
 	for ( unsigned i = 0; i != ndocs; ++i ) {
-		std::cout << format( "%s\n" ) % t->lookup_docname( i );
+		std::cout << t->lookup_docname( i ) << std::endl;
 	}
 	return 0;
 }
@@ -168,7 +163,7 @@
 
 	if ( handle ) return handle( argc, argv );
 	else {
-		std::cerr << format( "Unkown command: %s\n" ) % argv[ 1 ];
+		std::cerr << "Unkown command: " << argv[ 1 ] << std::endl;
 		return 1;
 
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic