CIMDB: clean up

- fix license text
- move unused include unistd.h into cpp file
- scope of the variable 'line' reduced.
- remove variable 'pos_firstline', its value was never used.
- remove unused variable: search
- remove variables 'pos_search1', 'pos_search2'... values never used.
- add member variable 'CIMDB::acc' into constructor, was not initialized
- move include for cc.h into cpp file
This commit is contained in:
2018-04-27 15:57:27 +02:00
parent ddf3bfd613
commit 28ba56e0b7
2 changed files with 19 additions and 14 deletions

View File

@@ -17,17 +17,15 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __imdb__
#define __imdb__
#include <unistd.h>
#include <gui/components/cc.h>
#include <zapit/zapit.h>
class CIMDB
@@ -50,7 +48,7 @@ class CIMDB
void getIMDbData(std::string& txt);
bool gotPoster() { return (access(posterfile.c_str(), F_OK) == 0); };
bool gotPoster();
bool checkIMDbElement(std::string element);
//FIXME: what if m[element] doesn't exist?