Commit 1c253bfb authored by Maciej Suminski's avatar Maciej Suminski

Some variables initialized to NULL.

parent 5ac69977
......@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http:O//www.gnu.org website for the version 2 license,
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
......
......@@ -84,7 +84,7 @@ int DRAWING_TOOL::DrawArc( TOOL_EVENT& aEvent )
double startAngle; // angle of the first arc line
VECTOR2I cursorPos = m_controls->GetCursorPosition();
DRAWSEGMENT* arc;
DRAWSEGMENT* arc = NULL;
DRAWSEGMENT helperLine;
helperLine.SetShape( S_SEGMENT );
helperLine.SetLayer( DRAW_N );
......@@ -374,7 +374,7 @@ int DRAWING_TOOL::DrawText( TOOL_EVENT& aEvent )
int DRAWING_TOOL::DrawDimension( TOOL_EVENT& aEvent )
{
DIMENSION* dimension;
DIMENSION* dimension = NULL;
int width, maxThickness;
// Add a VIEW_GROUP that serves as a preview for the new item
......@@ -922,9 +922,9 @@ int DRAWING_TOOL::drawSegment( int aShape, bool aContinous )
int DRAWING_TOOL::drawZone( bool aKeepout )
{
ZONE_CONTAINER* zone;
ZONE_CONTAINER* zone = NULL;
DRAWSEGMENT line45;
DRAWSEGMENT* helperLine; // we will need more than one helper line
DRAWSEGMENT* helperLine = NULL; // we will need more than one helper line
// Add a VIEW_GROUP that serves as a preview for the new item
KIGFX::VIEW_GROUP preview( m_view );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment