فهرست منبع

An neues Framework angepasst

Kolja Strohm 5 سال پیش
والد
کامیت
41065ff705
2فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 2 6
      Linie/SpielStatistik/SpielStatistik.cpp
  2. 1 1
      Linie/SpielStatistik/SpielStatistik.h

+ 2 - 6
Linie/SpielStatistik/SpielStatistik.cpp

@@ -42,8 +42,6 @@ SpielStatistik::~SpielStatistik()
 		tabelle->release();
 	if( schrift )
 		schrift->release();
-	if( screen )
-		screen->release();
 	if( infoc )
 		infoc->release();
 	if( spielc )
@@ -132,11 +130,9 @@ void SpielStatistik::setSchrift( Schrift *schrift )
 	this->schrift = schrift;
 }
 
-void SpielStatistik::setBildschirm( Bildschirm *screen )
+void SpielStatistik::setBildschirm( Bildschirm *zScreen )
 {
-	if( this->screen )
-		this->screen->release();
-	this->screen = screen;
+	screen = zScreen;
 }
 
 void SpielStatistik::setKlients( KSGClient::InformationServerClient *infoc, KSGClient::SpielServerClient *spielc )

+ 1 - 1
Linie/SpielStatistik/SpielStatistik.h

@@ -48,7 +48,7 @@ public:
 															   void( *addChatF )( void *, int ), void( *addFreundF )( void *, int ),
 															   void( *accountAnsehenF )( void *, int ), bool( *istFreundF )( void *, int ), void *nachrichtParam );
 	virtual void setSchrift( Schrift *schrift );
-	virtual void setBildschirm( Bildschirm *screen );
+	virtual void setBildschirm( Bildschirm *zScreen );
 	virtual void setKlients( KSGClient::InformationServerClient *infoc, KSGClient::SpielServerClient *spielc );
 	virtual void nachricht( int län, char *bytes );
 	virtual void doMausEreignis( MausEreignis &me );